Changeset 43369 in vbox
- Timestamp:
- Sep 20, 2012 1:09:46 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxDev-haiku.c
r43368 r43369 129 129 { 130 130 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie; 131 RTSPINLOCKTMP tmp;132 131 Log(("VBoxGuestHaikuClose: pSession=%p\n", pSession)); 133 132 134 RTSpinlockAcquireNoInts(g_DevExt.SessionSpinlock, &tmp); 133 /** @todo r=ramshankar: should we really be using the session spinlock here? */ 134 RTSpinlockAcquire(g_DevExt.SessionSpinlock); 135 135 136 136 //XXX: we don't know if it belongs to this session ! … … 144 144 } 145 145 146 RTSpinlockRelease NoInts(g_DevExt.SessionSpinlock, &tmp);146 RTSpinlockRelease(g_DevExt.SessionSpinlock); 147 147 148 148 return 0; … … 205 205 if (RT_UNLIKELY(len > _1M * 16)) 206 206 { 207 dprintf(DRIVER_NAME ": VBoxGuestHaikuIOCtl: bad size %#x; pArg=%p Cmd=%lu.\n", len, data, op);207 dprintf(DRIVER_NAME ": VBoxGuestHaikuIOCtl: bad size %#x; pArg=%p Cmd=%lu.\n", (unsigned)len, data, op); 208 208 return EINVAL; 209 209 } … … 276 276 { 277 277 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie; 278 RTSPINLOCKTMP tmp;279 278 status_t err = B_OK; 280 279 //dprintf(DRIVER_NAME "select(,%d,%p)\n", event, sync); … … 290 289 } 291 290 292 RTSpinlockAcquire NoInts(g_DevExt.SessionSpinlock, &tmp);291 RTSpinlockAcquire(g_DevExt.SessionSpinlock); 293 292 294 293 uint32_t u32CurSeq = ASMAtomicUoReadU32(&g_DevExt.u32MousePosChangedSeq); … … 312 311 } 313 312 314 RTSpinlockRelease NoInts(g_DevExt.SessionSpinlock, &tmp);313 RTSpinlockRelease(g_DevExt.SessionSpinlock); 315 314 316 315 return err; … … 348 347 { 349 348 PVBOXGUESTSESSION pSession = (PVBOXGUESTSESSION)cookie; 350 RTSPINLOCKTMP tmp;351 349 status_t err = B_OK; 352 350 //dprintf(DRIVER_NAME "deselect(,%d,%p)\n", event, sync); 353 351 354 RTSpinlockAcquire NoInts(g_DevExt.SessionSpinlock, &tmp);352 RTSpinlockAcquire(g_DevExt.SessionSpinlock); 355 353 356 354 if (sState.selectSync == sync) … … 364 362 err = B_OK; 365 363 366 RTSpinlockRelease NoInts(g_DevExt.SessionSpinlock, &tmp);364 RTSpinlockRelease(g_DevExt.SessionSpinlock); 367 365 return err; 368 366 }
Note:
See TracChangeset
for help on using the changeset viewer.