VirtualBox

Changeset 34256 in vbox for trunk/src/VBox/Runtime/r3/os2


Ignore:
Timestamp:
Nov 22, 2010 3:55:00 PM (14 years ago)
Author:
vboxsync
Message:

IPRT: Must clear the TLS entry holding RTTHREAD before freeing the structure or the electric fence heap may cause a crash when blocking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp

    r33393 r34256  
    9595
    9696
     97void rtThreadNativeDestroy(PRTTHREADINT pThread)
     98{
     99    if (pThread == *g_ppCurThread)
     100        *g_ppCurThread = NULL;
     101}
     102
     103
    97104/**
    98105 * Wrapper which unpacks the params and calls thread function.
Note: See TracChangeset for help on using the changeset viewer.

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