VirtualBox

Changeset 5445 in vbox


Ignore:
Timestamp:
Oct 23, 2007 3:09:59 PM (17 years ago)
Author:
vboxsync
Message:

sigh.

File:
1 edited

Legend:

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

    r5444 r5445  
    11631163    ASMAtomicXchgSize(&pIntRWSem->WROwner, pthread_self());
    11641164#else
    1165     ASMAtomicXchgPtr(&pIntRWSem->WROwner, pthread_self());
     1165    ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)pthread_self());
    11661166#endif
    11671167
     
    12051205    ASMAtomicXchgSize(&pIntRWSem->WROwner, (pthread_t)-1);
    12061206#else
    1207     ASMAtomicXchgPtr(&pIntRWSem->WROwner, (pthread_t)-1);
     1207    AssertMsg(sizeof(pthread_t) == sizeof(void *), ("pthread_t is not the size of a pointer but %d bytes\n", sizeof(pthread_t)));
     1208    ASMAtomicXchgPtr((void * volatile *)&pIntRWSem->WROwner, (void *)(pthread_t)-1);
    12081209#endif
    12091210    int rc = pthread_rwlock_unlock(&pIntRWSem->RWLock);
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