Replies: 2 comments
-
It is not stated explicitly, but in source code is comment that thread-local-storage (TLS) is available for WIN32. |
Beta Was this translation helpful? Give feedback.
-
Sorry, I don`t know the OpenWatcom code good enough to say something about the And i have no idea, how thread_local is handled in OS/2. This blog entry has a lot of infos/examples about thread local storage, but again, nothing related to OS/2: Is OS/2 supported by clang/llvm or gcc? Since C11, support for thread_local storage is in the C standard: <threads.h>. You can take a look at C11Threads on github. C11Threads.h and C11Threads_win.c should help to find the code The most easiest thing for a developer to use thread_local The thread_local storage class for a variable.
thread_local variables are in a separate memory area thread_local variables are collected in an extra section in the elf file. And when a new thread is created, memory for the thread_local variables Yes, there are a lot of things going on behind the scenes. |
Beta Was this translation helpful? Give feedback.
-
Is it not possible for os/2 target?
Beta Was this translation helpful? Give feedback.
All reactions