Mutex *keyframe_gui_lock;
// Lock during creation and destruction of brender so playback doesn't use it.
Mutex *brender_lock;
Mutex *keyframe_gui_lock;
// Lock during creation and destruction of brender so playback doesn't use it.
Mutex *brender_lock;
// Initialize shared memory
void init_shm(const char *pfn, int64_t min);
// Initialize shared memory
void init_shm(const char *pfn, int64_t min);