mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-13 04:46:15 +01:00
gthreadpool: Mention g_get_num_processors() in the thread pool docs
Just to make it a little more obvious that a thread pool can be initialised with one thread per logical CPU. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #272
This commit is contained in:
parent
5ba5f5b686
commit
b3c0c4804b
@ -528,6 +528,10 @@ g_thread_pool_start_thread (GRealThreadPool *pool,
|
|||||||
* with the two arguments. The first one is the parameter to
|
* with the two arguments. The first one is the parameter to
|
||||||
* g_thread_pool_push() and the second one is @user_data.
|
* g_thread_pool_push() and the second one is @user_data.
|
||||||
*
|
*
|
||||||
|
* Pass g_get_num_processors() to @max_threads to create as many threads as
|
||||||
|
* there are logical processors on the system. This will not pin each thread to
|
||||||
|
* a specific processor.
|
||||||
|
*
|
||||||
* The parameter @exclusive determines whether the thread pool owns
|
* The parameter @exclusive determines whether the thread pool owns
|
||||||
* all threads exclusive or shares them with other thread pools.
|
* all threads exclusive or shares them with other thread pools.
|
||||||
* If @exclusive is %TRUE, @max_threads threads are started
|
* If @exclusive is %TRUE, @max_threads threads are started
|
||||||
|
Loading…
Reference in New Issue
Block a user