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.
In a few places in the codebase, TlsAlloc, TlsSetValue, TlsGetValue, and TlsFree are used. While these functions are available on the Windows platform, they are not on Linux/MacOS.
As a result, we should use an alternative. Currently, I have used the standard C++ thread_local keyword to handle these cases on Linux. However, it's been brought to my attention that compiling thread_local using Clang on MacOS does not work properly. As a result, we should use pthread_key_.... Ultimately, we should have Tls* for Windows and pthread* for all other platforms.
So, the thread_local implementation should be removed from the following files and be replaced with pthread implementation:
I have an implementation of this. It's running into a few shared lib setup and shutdown issues where the retrieval of the IMalloc pointer is concerned. I have something that works, but I'm not sure if it's the right approach.
Activity
pow2clk commentedon May 16, 2018
I have an implementation of this. It's running into a few shared lib setup and shutdown issues where the retrieval of the IMalloc pointer is concerned. I have something that works, but I'm not sure if it's the right approach.
[linux-port] Use cross-platform TLS methods (#228)
ehsannas commentedon Jun 5, 2018
Fixed.