VirtualBox

vbox的更動 46593 路徑 trunk/src/VBox/Runtime/r3/os2


忽略:
時間撮記:
2013-6-17 下午02:32:51 (11 年 以前)
作者:
vboxsync
訊息:

updates

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/Runtime/r3/os2/thread-os2.cpp

    r44528 r46593  
    7979
    8080
    81 DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
     81static void rtThreadOs2BlockSigAlarm(void)
    8282{
    8383    /*
     
    9090    sigaddset(&SigSet, SIGALRM);
    9191    sigprocmask(SIG_BLOCK, &SigSet, NULL);
     92}
     93
     94
     95DECLHIDDEN(void) rtThreadNativeReInitObtrusive(void)
     96{
     97    rtThreadOs2BlockSigAlarm();
     98}
     99
     100
     101DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
     102{
    92103
    93104    *g_ppCurThread = pThread;
     
    108119static void rtThreadNativeMain(void *pvArgs)
    109120{
    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();
    119122
    120123    /*
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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