vbox的更動 46593 路徑 trunk/src/VBox/Runtime/r3/os2
- 時間撮記:
- 2013-6-17 下午02:32:51 (11 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp
r44528 r46593 79 79 80 80 81 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)81 static void rtThreadOs2BlockSigAlarm(void) 82 82 { 83 83 /* … … 90 90 sigaddset(&SigSet, SIGALRM); 91 91 sigprocmask(SIG_BLOCK, &SigSet, NULL); 92 } 93 94 95 DECLHIDDEN(void) rtThreadNativeReInitObtrusive(void) 96 { 97 rtThreadOs2BlockSigAlarm(); 98 } 99 100 101 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread) 102 { 92 103 93 104 *g_ppCurThread = pThread; … … 108 119 static void rtThreadNativeMain(void *pvArgs) 109 120 { 110 /* 111 * Block SIGALRM - required for timer-posix.cpp. 112 * This is done to limit harm done by OSes which doesn't do special SIGALRM scheduling. 113 * It will not help much if someone creates threads directly using pthread_create. :/ 114 */ 115 sigset_t SigSet; 116 sigemptyset(&SigSet); 117 sigaddset(&SigSet, SIGALRM); 118 sigprocmask(SIG_BLOCK, &SigSet, NULL); 121 rtThreadOs2BlockSigAlarm(); 119 122 120 123 /*
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器