Changeset 26423 in vbox
- Timestamp:
- Feb 11, 2010 11:16:39 AM (15 years ago)
- Location:
- trunk/src/VBox/Devices/Network
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Network/DrvNAT.cpp
r26404 r26423 338 338 339 339 rc = RTCritSectEnter(&pThis->csDevAccess); 340 AssertRC(rc); 340 341 341 342 rc = pThis->pIAboveNet->pfnWaitReceiveAvail(pThis->pIAboveNet, RT_INDEFINITE_WAIT); -
trunk/src/VBox/Devices/Network/slirp/mbuf.c
r25822 r26423 86 86 #if 1 87 87 rc = RTCritSectInit(&pData->cs_mbuf_zone); 88 AssertR eleaseRC(rc);88 AssertRC(rc); 89 89 rc = mbuf_zone_init(pData); 90 90 Assert((rc == 0)); … … 127 127 128 128 rc = RTCritSectEnter(&pData->cs_mbuf_zone); 129 AssertR eleaseRC(rc);129 AssertRC(rc); 130 130 131 131 recheck_zone: … … 179 179 DEBUG_ARG("m = %lx", (long )m); 180 180 rc = RTCritSectLeave(&pData->cs_mbuf_zone); 181 AssertR eleaseRC(rc);181 AssertRC(rc); 182 182 return m; 183 183 } … … 191 191 192 192 rc = RTCritSectEnter(&pData->cs_mbuf_zone); 193 AssertR eleaseRC(rc);193 AssertRC(rc); 194 194 mbuf_alloced--; 195 195 if(m) … … 226 226 } /* if(m) */ 227 227 rc = RTCritSectLeave(&pData->cs_mbuf_zone); 228 AssertR eleaseRC(rc);228 AssertRC(rc); 229 229 } 230 230 -
trunk/src/VBox/Devices/Network/slirp/slirp_state.h
r25276 r26423 445 445 /* Assert(strcmp(RTThreadSelfName(), "EMT") != 0); */ \ 446 446 rc = RTCritSectEnter(&VBOX_X(queue) ## _mutex); \ 447 AssertR eleaseRC(rc);\447 AssertRC(rc); \ 448 448 } while (0) 449 449 # define QSOCKET_UNLOCK(queue) \ … … 451 451 int rc; \ 452 452 rc = RTCritSectLeave(&VBOX_X(queue) ## _mutex); \ 453 AssertR eleaseRC(rc);\453 AssertRC(rc); \ 454 454 } while (0) 455 455 # define QSOCKET_LOCK_CREATE(queue) \ … … 457 457 int rc; \ 458 458 rc = RTCritSectInit(&pData->queue ## _mutex); \ 459 AssertR eleaseRC(rc);\459 AssertRC(rc); \ 460 460 } while (0) 461 461 # define QSOCKET_LOCK_DESTROY(queue) \ 462 462 do { \ 463 463 int rc = RTCritSectDelete(&pData->queue ## _mutex); \ 464 AssertR eleaseRC(rc);\464 AssertRC(rc); \ 465 465 } while (0) 466 466 … … 507 507 int rc; \ 508 508 rc = RTReqAlloc((data)->pReqQueue, &pReq, RTREQTYPE_INTERNAL); \ 509 AssertR eleaseRC(rc);\509 AssertRC(rc); \ 510 510 pReq->u.Internal.pfn = (PFNRT)tcp_output; \ 511 511 pReq->u.Internal.cArgs = 2; \ -
trunk/src/VBox/Devices/Network/slirp/socket.h
r23369 r26423 96 96 int rc; \ 97 97 /* Assert(strcmp(RTThreadSelfName(), "EMT") != 0); */ \ 98 Log2(("lock:%s:%d L on %R[natsock]\n", __FUNCTION__, __LINE__, (so))); 99 Assert(!RTCritSectIsOwner(&(so)->so_mutex)); 100 rc = RTCritSectEnter(&(so)->so_mutex); 101 AssertR eleaseRC(rc);\98 Log2(("lock:%s:%d L on %R[natsock]\n", __FUNCTION__, __LINE__, (so))); \ 99 Assert(!RTCritSectIsOwner(&(so)->so_mutex)); \ 100 rc = RTCritSectEnter(&(so)->so_mutex); \ 101 AssertRC(rc); \ 102 102 } while (0) 103 103 # define SOCKET_UNLOCK(so) \ 104 104 do { \ 105 105 int rc; \ 106 if ((so) != NULL) Log2(("lock:%s:%d U on %R[natsock]\n", __FUNCTION__, __LINE__, (so))); 107 rc = RTCritSectLeave(&(so)->so_mutex); 108 Assert ReleaseRC(rc);\106 if ((so) != NULL) Log2(("lock:%s:%d U on %R[natsock]\n", __FUNCTION__, __LINE__, (so))); \ 107 rc = RTCritSectLeave(&(so)->so_mutex); \ 108 Assert(rc); \ 109 109 } while (0) 110 110 # define SOCKET_LOCK_CREATE(so) \ 111 111 do { \ 112 112 int rc; \ 113 rc = RTCritSectInit(&(so)->so_mutex); 114 AssertR eleaseRC(rc);\113 rc = RTCritSectInit(&(so)->so_mutex); \ 114 AssertRC(rc); \ 115 115 } while (0) 116 116 # define SOCKET_LOCK_DESTROY(so) \ 117 117 do { \ 118 int rc = RTCritSectDelete(&(so)->so_mutex); 119 AssertR eleaseRC(rc);\118 int rc = RTCritSectDelete(&(so)->so_mutex); \ 119 AssertRC(rc); \ 120 120 } while (0) 121 121 #else
Note:
See TracChangeset
for help on using the changeset viewer.