VirtualBox

Changeset 30576 in vbox


Ignore:
Timestamp:
Jul 2, 2010 12:53:46 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
63299
Message:

semeventmulti-r0drv-solaris.c: that the version changed is sufficient, testing that it has to be higher is wrong because the value may wrap around.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/solaris/semeventmulti-r0drv-solaris.c

    r30552 r30576  
    55
    66/*
    7  * Copyright (C) 2006-2007 Oracle Corporation
     7 * Copyright (C) 2006-2010 Oracle Corporation
    88 *
    99 * This file is part of VirtualBox Open Source Edition (OSE), as
     
    6161    /** The number of threads in the process of waking up, doubles up as a ref counter. */
    6262    uint32_t volatile   cWaking;
    63     /** Object version indicating a valid signal event occurred. */
     63    /** Object version that is incremented every time the object is signaled. */
    6464    uint32_t volatile   u32Version;
    6565    /** The Solaris mutex protecting this structure and pairing up the with the cv. */
     
    280280                {
    281281                    /* Retured due to call to cv_signal() or cv_broadcast() */
    282                     if (u32Version > u32VersionBeforeWait)
     282                    if (u32Version != u32VersionBeforeWait)
    283283                    {
    284284                        rc = VINF_SUCCESS;
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