VirtualBox

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


忽略:
時間撮記:
2010-1-3 下午03:23:27 (15 年 以前)
作者:
vboxsync
訊息:

iprt/semmutex*: Added RTSemMutexIsOwned. Rewrote mutex recursion handling for windows (semmutex-win.cpp).

檔案:
修改 1 筆資料

圖例:

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

    r25378 r25624  
    279279
    280280
    281 
     281RTDECL(bool) RTSemMutexIsOwned(RTSEMMUTEX hMutex);
     282{
     283    /*
     284     * Unlock mutex semaphore.
     285     */
     286    PID     pid;
     287    TID     tid;
     288    ULONG   cRecursions;
     289    int rc = DosQueryMutexSem(SEM2HND(MutexSem), &pid, &tid, &cRecursions);
     290    if (!rc)
     291        return cRecursions != 0;
     292    AssertMsgFailed(("DosQueryMutexSem %p failed, rc=%d\n", MutexSem, rc));
     293    return rc == ERROR_SEM_OWNER_DIED;
     294}
     295
     296
     297
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

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