Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenlib/intern/threads.c
| Context not available. | |||||
| unsigned int level = atomic_fetch_and_add_u(&thread_levels, 1); | unsigned int level = atomic_fetch_and_add_u(&thread_levels, 1); | ||||
| if (level == 0) { | if (level == 0) { | ||||
| MEM_set_lock_callback(BLI_lock_malloc_thread, BLI_unlock_malloc_thread); | MEM_set_lock_callback(BLI_lock_malloc_thread, BLI_unlock_malloc_thread); | ||||
| /* There is a little chance that two threads will meed to acces to a | /* There is a little chance that two threads will meed to access to a | ||||
| * scheduler which was not yet created from main thread. which could | * scheduler which was not yet created from main thread. which could | ||||
| * cause scheduler created multiple times. | * cause scheduler created multiple times. | ||||
| */ | */ | ||||
| Context not available. | |||||