Changeset 31212 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jul 29, 2010 1:41:27 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/r3/socket.cpp
r31189 r31212 1352 1352 * @param pThis The socket handle. 1353 1353 */ 1354 static int rtSocketPollClearEventAnd MakeBlocking(RTSOCKETINT *pThis)1354 static int rtSocketPollClearEventAndRestoreBlocking(RTSOCKETINT *pThis) 1355 1355 { 1356 1356 int rc = VINF_SUCCESS; … … 1362 1362 1363 1363 /* 1364 * Don't switch back to blocking mode if the socket is currently1365 * operat ed in non-blocking mode.1364 * Switch back to blocking mode if that was the state before the 1365 * operation. 1366 1366 */ 1367 1367 if (pThis->fBlocking) … … 1526 1526 if (pThis->cUsers == 1) 1527 1527 { 1528 rtSocketPollClearEventAnd MakeBlocking(pThis);1528 rtSocketPollClearEventAndRestoreBlocking(pThis); 1529 1529 pThis->hPollSet = NIL_RTPOLLSET; 1530 1530 } … … 1566 1566 if (pThis->cUsers == 1) 1567 1567 { 1568 rtSocketPollClearEventAnd MakeBlocking(pThis);1568 rtSocketPollClearEventAndRestoreBlocking(pThis); 1569 1569 pThis->hPollSet = NIL_RTPOLLSET; 1570 1570 }
Note:
See TracChangeset
for help on using the changeset viewer.