VirtualBox

Changeset 5444 in vbox for trunk/src


Ignore:
Timestamp:
Oct 23, 2007 2:55:02 PM (17 years ago)
Author:
vboxsync
Message:

now then?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/posix/sems-posix.cpp

    r5443 r5444  
    11601160    }
    11611161
     1162#ifdef RT_OS_SOLARIS
    11621163    ASMAtomicXchgSize(&pIntRWSem->WROwner, pthread_self());
     1164#else
     1165    ASMAtomicXchgPtr(&pIntRWSem->WROwner, pthread_self());
     1166#endif
    11631167
    11641168    return VINF_SUCCESS;
     
    11981202     * Try unlock it.
    11991203     */
     1204#ifdef RT_OS_SOLARIS
    12001205    ASMAtomicXchgSize(&pIntRWSem->WROwner, (pthread_t)-1);
     1206#else
     1207    ASMAtomicXchgPtr(&pIntRWSem->WROwner, (pthread_t)-1);
     1208#endif
    12011209    int rc = pthread_rwlock_unlock(&pIntRWSem->RWLock);
    12021210    if (rc)
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