Changeset 34256 in vbox for trunk/src/VBox/Runtime/r3
- Timestamp:
- Nov 22, 2010 3:55:00 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68004
- Location:
- trunk/src/VBox/Runtime/r3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
r33393 r34256 95 95 96 96 97 void rtThreadNativeDestroy(PRTTHREADINT pThread) 98 { 99 if (pThread == *g_ppCurThread) 100 *g_ppCurThread = NULL; 101 } 102 103 97 104 /** 98 105 * Wrapper which unpacks the params and calls thread function. -
trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
r34176 r34256 204 204 205 205 206 void rtThreadNativeDestroy(PRTTHREADINT pThread) 207 { 208 if (pThread == (PRTTHREADINT)pthread_getspecific(g_SelfKey)) 209 pthread_setspecific(g_SelfKey, NULL); 210 } 211 212 206 213 /** 207 214 * Wrapper which unpacks the params and calls thread function. … … 243 250 rc = rtThreadMain(pThread, (uintptr_t)Self, &pThread->szName[0]); 244 251 245 pthread_setspecific(g_SelfKey, NULL);246 252 pthread_exit((void *)rc); 247 253 return (void *)rc; -
trunk/src/VBox/Runtime/r3/win/thread-win.cpp
r32914 r34256 78 78 TlsSetValue(g_dwSelfTLS, NULL); 79 79 } 80 } 81 82 83 void rtThreadNativeDestroy(PRTTHREADINT pThread) 84 { 85 if (pThread == (PRTTHREADINT)TlsGetValue(g_dwSelfTLS)) 86 TlsSetValue(g_dwSelfTLS, NULL); 80 87 } 81 88
Note:
See TracChangeset
for help on using the changeset viewer.