VirtualBox

Changeset 83124 in vbox for trunk/src/VBox/Runtime/r3


Ignore:
Timestamp:
Feb 20, 2020 5:23:23 PM (5 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
136236
Message:

IPRT: Merged the two tls files, with the sideeffect that destructors only works for IPRT threads in non-dll setups.

Location:
trunk/src/VBox/Runtime/r3/win
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/dllmain-win.cpp

    r83101 r83124  
    8282
    8383        case DLL_THREAD_DETACH:
    84             rtTlsWinDetachThread();
     84            rtThreadWinTlsDestruction();
    8585            rtThreadNativeDetach();
    8686            break;
  • trunk/src/VBox/Runtime/r3/win/tls-win.cpp

    r83123 r83124  
    200200 * Called by dllmain-win.cpp when a thread detaches.
    201201 */
    202 DECLHIDDEN(void) rtTlsWinDetachThread(void)
     202DECLHIDDEN(void) rtThreadWinTlsDestruction(void)
    203203{
    204204    if (ASMAtomicReadU32(&g_cTlsDtors) > 0)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette