VirtualBox

Changeset 20107 in vbox for trunk


Ignore:
Timestamp:
May 27, 2009 8:52:22 PM (16 years ago)
Author:
vboxsync
Message:

SemEvent-r0drv/FreeBSD: Don't use tvtohz for an infinite timeout. Should fix the assertion seen by users

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/freebsd/semevent-r0drv-freebsd.c

    r19972 r20107  
    170170            tv.tv_usec = (cMillies % 1000) * 1000;
    171171        }
    172         else
    173         {
    174             tv.tv_sec = 0;
    175             tv.tv_usec = 0;
    176         }
    177172
    178173        ASMAtomicIncU32(&pEventInt->cWaiters);
     
    182177                    fInterruptible ? PZERO | PCATCH : PZERO,
    183178                    "iprtev",
    184                     tvtohz(&tv));
     179                      cMillis == RT_INDEFINITE_WAIT
     180                    ? 0
     181                    : tvtohz(&tv));
    185182        mtx_lock_spin(&pEventInt->Mtx);
    186183
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