diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2016-12-23 14:40:47 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-03-03 19:42:33 +0300 |
commit | fe226dc5b3a934d684528b67a3befb3630da4c0b (patch) | |
tree | 05895513f16e49d35511e09bfc4d59b3871f6b11 /source/blender/blenlib/BLI_task.h | |
parent | 9dab894e641d5190a26c6fafb918d9503cc76f3b (diff) |
Do less nanosleep loops.unlock_task_scheduler
tested that already without much change yesterday, but for some reasons
today it gives me another 2-3% speedup in both test files.
And it should also mitigate the (supposed) almost-starving situation,
hopefully.
Diffstat (limited to 'source/blender/blenlib/BLI_task.h')
-rw-r--r-- | source/blender/blenlib/BLI_task.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/blenlib/BLI_task.h b/source/blender/blenlib/BLI_task.h index d27bf4dad20..a551124375e 100644 --- a/source/blender/blenlib/BLI_task.h +++ b/source/blender/blenlib/BLI_task.h @@ -97,7 +97,7 @@ void BLI_task_pool_work_and_wait(TaskPool *pool); void BLI_task_pool_cancel(TaskPool *pool); /* set number of threads allowed to be used by this pool */ -void BLI_pool_set_num_threads(TaskPool *pool, int num_threads); +void BLI_pool_set_num_threads(TaskPool *pool, size_t num_threads); /* for worker threads, test if canceled */ bool BLI_task_pool_canceled(TaskPool *pool); |