mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00:00
yank out shared mutex impl
Initially shared mutex was needed to lock cores so thread pool executes one parallel for at a time but on machine with high core count we cant saturate processor all the time so we switched to shared semaphore and block thread when all cores are busy.
This commit is contained in:
@@ -277,12 +277,6 @@ internal void os_rw_mutex_drop_r(OS_Handle mutex);
|
||||
internal void os_rw_mutex_take_w(OS_Handle mutex);
|
||||
internal void os_rw_mutex_drop_w(OS_Handle mutex);
|
||||
|
||||
//- shared mutex
|
||||
internal OS_Handle os_shared_mutex_alloc(String8 name);
|
||||
internal void os_shared_mutex_release(OS_Handle mutex);
|
||||
internal B32 os_shared_mutex_take(OS_Handle mutex, U64 endt_us);
|
||||
internal void os_shared_mutex_drop(OS_Handle mutex);
|
||||
|
||||
//- rjf: condition variables
|
||||
internal OS_Handle os_condition_variable_alloc(void);
|
||||
internal void os_condition_variable_release(OS_Handle cv);
|
||||
|
||||
Reference in New Issue
Block a user