-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
C++11 thread_local #7
Comments
Sorry I can't reproduce this problem. The thread_local variable works correctly on my simple test program. Can you provide a code snippet that causes this problem? |
I integrated MMPP into a larger build, cannot provide a small repro now. |
Please answer these questions to help me build the test program:
|
|
If MMPP is statically linked, how did you create the threadWork thread before initializing MMPP and make it run? |
in the b.DLL: initbDll() static unsigned __stdcall threadWork(void *lpParam) // if I do not link MMPP.lib to the b.DLL everything works. |
When MMPP is not initialized, in the 1st worker thread: later, MMPP initialized next new thread(worker 2nd thread) --> and at same code, rdx 0 |
Hi! Could you reproduce the issue? |
Hi,
I integrated this great library into our application and we got an error when this application creates a C++11 thread.
The callstack starts from last line of MmpUserThreadStart() and ends a thread_local variable reference. The variable is a simple pointer to a structure what is newed before the first usage of the pointer. The program did not use the MMPP api at this early stage just want to create some background threads. Without linking MMPP, no issue w the thread creation.
Does the lib MMPP support C++11 thread_local?
The text was updated successfully, but these errors were encountered: