vbox的更動 41881 路徑 trunk/src/VBox/Runtime/r3/posix
- 時間撮記:
- 2012-6-22 上午10:53:32 (12 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/posix/thread-posix.cpp
r41763 r41881 48 48 # include <mach/mach_host.h> 49 49 #endif 50 #if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) || defined(RT_OS_LINUX) - later */\50 #if defined(RT_OS_DARWIN) /*|| defined(RT_OS_FREEBSD) - later */ || defined(RT_OS_LINUX) \ 51 51 || defined(IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP) 52 52 # define IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP … … 92 92 */ 93 93 typedef int (*PFNPTHREADSETNAME)(const char *pszName); 94 # el if94 # else 95 95 /** 96 96 * The variant of pthread_setname_np most other unix-like systems implement. … … 256 256 { 257 257 PRTTHREADINT pThread = (PRTTHREADINT)pvArgs; 258 pthread_t Self = pthread_self(); 259 Assert((uintptr_t)Self == (RTNATIVETHREAD)Self && (uintptr_t)Self != NIL_RTNATIVETHREAD); 258 260 259 261 #if defined(RT_OS_LINUX) … … 287 289 #ifdef IPRT_MAY_HAVE_PTHREAD_SET_NAME_NP 288 290 if (g_pfnThreadSetName) 291 # ifdef RT_OS_DARWIN 289 292 g_pfnThreadSetName(pThread->szName); 293 # else 294 g_pfnThreadSetName(Self, pThread->szName); 295 # endif 290 296 #endif 291 297 … … 293 299 * Call common main. 294 300 */ 295 pthread_t Self = pthread_self();296 Assert((uintptr_t)Self == (RTNATIVETHREAD)Self && (uintptr_t)Self != NIL_RTNATIVETHREAD);297 301 rc = rtThreadMain(pThread, (uintptr_t)Self, &pThread->szName[0]); 298 302
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器