VirtualBox

Changeset 8679 in vbox for trunk


Ignore:
Timestamp:
May 7, 2008 6:22:43 PM (17 years ago)
Author:
vboxsync
Message:

Ignore NIL_RTTHREAD parameters for the RTThreadGet*LockCount APIs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/thread.cpp

    r8669 r8679  
    10801080RTDECL(int32_t) RTThreadGetWriteLockCount(RTTHREAD Thread)
    10811081{
     1082    if (Thread == NIL_RTTHREAD)
     1083        return 0;
     1084
    10821085    PRTTHREADINT pThread = rtThreadGet(Thread);
    10831086    if (!pThread)
     
    11301133RTDECL(int32_t) RTThreadGetReadLockCount(RTTHREAD Thread)
    11311134{
     1135    if (Thread == NIL_RTTHREAD)
     1136        return 0;
     1137
    11321138    PRTTHREADINT pThread = rtThreadGet(Thread);
    11331139    if (!pThread)
Note: See TracChangeset for help on using the changeset viewer.

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