VirtualBox

Ignore:
Timestamp:
Oct 14, 2008 11:27:51 AM (16 years ago)
Author:
vboxsync
Message:

Runtime/Solaris: Use MUTEX_SPIN with dispatch level. (Temporary attempt to see if it affects the hang).

File:
1 edited

Legend:

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

    r8245 r13248  
    3333*******************************************************************************/
    3434#include "the-solaris-kernel.h"
     35#include <sys/spl.h>
    3536
    3637#include <iprt/spinlock.h>
     
    7273     */
    7374    pSpinlockInt->u32Magic = RTSPINLOCK_MAGIC;
    74     mutex_init(&pSpinlockInt->Mtx, "IPRT Spinlock", MUTEX_DRIVER, NULL);
     75    mutex_init(&pSpinlockInt->Mtx, "IPRT Spinlock", MUTEX_SPIN, (void *)ipltospl(DISP_LEVEL));
    7576    *pSpinlock = pSpinlockInt;
    7677    return VINF_SUCCESS;
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