You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Repository navigation
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Thread-safe mechanisms not fully implemented on non-Win32 #198
InterlockedIncrement and InterlockedDecrement are atomic operations to increment or decrement the value pointed to by the pointer parameter and return the same. Currently they are implemented as simple addition operations in WinMacros.h for non-win32 platforms which works well enough, but wasn't really the original intent.
InitializeCriticalSection, DeleteCriticalSection, EnterCriticalSection, and LeaveCriticalSection serve to create a mutual exclusion section of code, but they are also stubbed out currently.
There are already platform abstractions available to LLVM in Atomics.h and Mutex.h respectively. I propose we leverage them.
Activity
ehsannas commentedon May 19, 2018
+1
[linux-port] fix refcounting on imalloc and others (#200)
[linux-port] Implement thread-safe incr/decr (#201)
[linux-port] Cross-platform critical section (#235)
ehsannas commentedon Jun 5, 2018
@pow2clk is there any work left associated with this case?
pow2clk commentedon Jun 6, 2018
Nope! I've finished everything I intended to with this.