VirtualBox

Changeset 27509 in vbox for trunk/src/VBox/Runtime/r3/posix


Ignore:
Timestamp:
Mar 18, 2010 11:47:16 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
59012
Message:

iprt: Poll on sockets on windows (untested). RTPollSetCount -> RTPollSetGetCount.

File:
1 edited

Legend:

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

    r27503 r27509  
    184184     * Set the busy flag and do the job.
    185185     */
    186     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     186    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    187187
    188188    int rc;
     
    224224     * Set the busy flag and do the job.
    225225     */
    226     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     226    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    227227
    228228    int rc = rtPollNoResumeWorker(pThis, cMillies, pfEvents, pid);
     
    260260    AssertPtrReturn(pThis, VERR_INVALID_HANDLE);
    261261    AssertReturn(pThis->u32Magic == RTPOLLSET_MAGIC, VERR_INVALID_HANDLE);
    262     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     262    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    263263
    264264    ASMAtomicWriteU32(&pThis->u32Magic, ~RTPOLLSET_MAGIC);
     
    293293     * Set the busy flag and do the job.
    294294     */
    295     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     295    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    296296
    297297    int rc = VINF_SUCCESS;
     
    407407     * Set the busy flag and do the job.
    408408     */
    409     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     409    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    410410
    411411    int         rc = VERR_POLL_HANDLE_ID_NOT_FOUND;
     
    444444     * Set the busy flag and do the job.
    445445     */
    446     AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_WRONG_ORDER);
     446    AssertReturn(ASMAtomicCmpXchgBool(&pThis->fBusy, true,  false), VERR_CONCURRENT_ACCESS);
    447447
    448448    int         rc = VERR_POLL_HANDLE_ID_NOT_FOUND;
     
    465465
    466466
    467 RTDECL(uint32_t) RTPollSetCount(RTPOLLSET hPollSet)
     467RTDECL(uint32_t) RTPollSetGetCount(RTPOLLSET hPollSet)
    468468{
    469469    /*
Note: See TracChangeset for help on using the changeset viewer.

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