diff options
author | Volker Lendecke <vl@samba.org> | 2011-04-25 20:05:31 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-04-26 12:41:56 +0200 |
commit | dbc36befb5459cd59ffe2527261886ec962ea941 (patch) | |
tree | ffc1ae68ba29734012bec4629af510f0ccba7e4f /source3/lib/pthreadpool/pthreadpool.h | |
parent | 0840d5bb8b84fd6221d64a1992708fd3a135e5b7 (diff) | |
download | samba-dbc36befb5459cd59ffe2527261886ec962ea941.tar.gz samba-dbc36befb5459cd59ffe2527261886ec962ea941.tar.bz2 samba-dbc36befb5459cd59ffe2527261886ec962ea941.zip |
s3: Allow unlimited parallelism in pthreadpool
Diffstat (limited to 'source3/lib/pthreadpool/pthreadpool.h')
-rw-r--r-- | source3/lib/pthreadpool/pthreadpool.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/lib/pthreadpool/pthreadpool.h b/source3/lib/pthreadpool/pthreadpool.h index 255393377f..79704ea385 100644 --- a/source3/lib/pthreadpool/pthreadpool.h +++ b/source3/lib/pthreadpool/pthreadpool.h @@ -39,6 +39,9 @@ struct pthreadpool; * @param[in] max_threads Maximum parallelism in this pool * @param[out] presult Pointer to the threadpool returned * @return success: 0, failure: errno + * + * max_threads=0 means unlimited parallelism. The caller has to take + * care to not overload the system. */ int pthreadpool_init(unsigned max_threads, struct pthreadpool **presult); |