Changeset View
Changeset View
Standalone View
Standalone View
source/blender/imbuf/intern/allocimbuf.c
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | void imb_refcounter_lock_init(void) | ||||
| BLI_spin_init(&refcounter_spin); | BLI_spin_init(&refcounter_spin); | ||||
| } | } | ||||
| void imb_refcounter_lock_exit(void) | void imb_refcounter_lock_exit(void) | ||||
| { | { | ||||
| BLI_spin_end(&refcounter_spin); | BLI_spin_end(&refcounter_spin); | ||||
| } | } | ||||
| #ifdef WIN32 | #ifndef WIN32 | ||||
| static SpinLock mmap_spin; | static SpinLock mmap_spin; | ||||
| void imb_mmap_lock_init(void) | void imb_mmap_lock_init(void) | ||||
| { | { | ||||
| BLI_spin_init(&mmap_spin); | BLI_spin_init(&mmap_spin); | ||||
| } | } | ||||
| void imb_mmap_lock_exit(void) | void imb_mmap_lock_exit(void) | ||||
| ▲ Show 20 Lines • Show All 623 Lines • Show Last 20 Lines | |||||