Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/BLI_threads.h
| Context not available. | |||||
| struct TaskScheduler *BLI_task_scheduler_get(void); | struct TaskScheduler *BLI_task_scheduler_get(void); | ||||
| void BLI_threadpool_init(struct ListBase *threadbase, void *(*do_thread)(void *), int tot); | void BLI_threadpool_init(struct ListBase *threadbase, void *(*do_thread)(void *), int tot, const char *pool_name); | ||||
| int BLI_available_threads(struct ListBase *threadbase); | int BLI_available_threads(struct ListBase *threadbase); | ||||
| int BLI_threadpool_available_thread_index(struct ListBase *threadbase); | int BLI_threadpool_available_thread_index(struct ListBase *threadbase); | ||||
| void BLI_threadpool_insert(struct ListBase *threadbase, void *callerdata); | void BLI_threadpool_insert(struct ListBase *threadbase, void *callerdata); | ||||
| Context not available. | |||||
| void BLI_system_num_threads_override_set(int num); | void BLI_system_num_threads_override_set(int num); | ||||
| int BLI_system_num_threads_override_get(void); | int BLI_system_num_threads_override_get(void); | ||||
| /* Thread name */ | |||||
| /** | |||||
| * \brief Sets the name of the currently running thread. Normally used to aid debugging. | |||||
| * \param thread_name Name of the thread, must be less than 15 characturs. | |||||
| */ | |||||
| void BLI_thread_name_set(const char* thread_name); | |||||
sergey: As per style guide, `const char *thread_name` | |||||
velocityAuthorUnsubmitted Done Inline ActionsTypo, thank you. velocity: Typo, thank you. | |||||
| /* Global Mutex Locks | /* Global Mutex Locks | ||||
| * | * | ||||
| * One custom lock available now. can be extended. */ | * One custom lock available now. can be extended. */ | ||||
| Context not available. | |||||
As per style guide, const char *thread_name