diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-17 07:46:34 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-17 10:04:28 +0400 |
commit | 1b9db9911d9cbcb81d58277084b9c4c5daf84e8a (patch) | |
tree | b840209b9de94432cb4e5d61567e46741870b504 /source/blender/blenlib | |
parent | 4219e44f1d89cfd6ccdf3adc0fd73e22ae7b6df3 (diff) |
Code cleanup: use bools
also rename BLI_omp_thread_count -> BLI_system_thread_count_omp
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_threads.h | 2 | ||||
-rw-r--r-- | source/blender/blenlib/intern/threads.c | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source/blender/blenlib/BLI_threads.h b/source/blender/blenlib/BLI_threads.h index b522d95ddae..1c9e75d950a 100644 --- a/source/blender/blenlib/BLI_threads.h +++ b/source/blender/blenlib/BLI_threads.h @@ -75,7 +75,7 @@ int BLI_system_thread_count(void); /* gets the number of threads the system void BLI_system_num_threads_override_set(int num); int BLI_system_num_threads_override_get(void); -int BLI_omp_thread_count(void); /* gets the number of openmp threads the system can make use of */ +int BLI_system_thread_count_omp(void); /* Global Mutex Locks * diff --git a/source/blender/blenlib/intern/threads.c b/source/blender/blenlib/intern/threads.c index 95986b11292..0cdefac902d 100644 --- a/source/blender/blenlib/intern/threads.c +++ b/source/blender/blenlib/intern/threads.c @@ -350,8 +350,10 @@ void BLI_end_threads(ListBase *threadbase) /* System Information */ -/* gets the number of openmp threads the system can make use of */ -int BLI_omp_thread_count(void) +/** + * Returns the number of openmp threads the system can make use of + */ +int BLI_system_thread_count_omp(void) { int t; #ifdef _OPENMP |