mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-25 15:22:19 -08:00
correctly close module file handles on module unloading in new demon layer
This commit is contained in:
1 parent
d73a3d4196
commit
4899f1871b
3 files changed
+11
-5
No files matched your search
+1
-2
@@ -365,8 +365,7 @@ dbgi_binary_close(String8 exe_path)
|
||||
if(need_deletion) for(;;)
|
||||
{
|
||||
os_rw_mutex_drop_w(stripe->rw_mutex);
|
||||
for(U64 start_t = os_now_microseconds();
|
||||
os_now_microseconds() <= start_t + 250;);
|
||||
for(U64 start_t = os_now_microseconds(); os_now_microseconds() <= start_t + 250;);
|
||||
os_rw_mutex_take_w(stripe->rw_mutex);
|
||||
if(binary->refcount == 0 && ins_atomic_u64_eval(&binary->scope_touch_count) == 0)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user