org.openide.util 6.8.22

org.openide.util
Class Mutex.Privileged

java.lang.Object
  extended by org.openide.util.Mutex.Privileged
Enclosing class:
Mutex

public static final class Mutex.Privileged
extends Object

Provides access to Mutex's internal methods. This class can be used when one wants to avoid creating a bunch of Runnables. Instead,

 try {
     enterXAccess ();
     yourCustomMethod ();
 } finally {
     exitXAccess ();
 }
 
can be used. You must, however, control the related Mutex, i.e. you must be creator of the Mutex.

Since:
1.17

Constructor Summary
Mutex.Privileged()
           
 
Method Summary
 void enterReadAccess()
           
 void enterWriteAccess()
           
 void exitReadAccess()
           
 void exitWriteAccess()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mutex.Privileged

public Mutex.Privileged()
Method Detail

enterReadAccess

public void enterReadAccess()

enterWriteAccess

public void enterWriteAccess()

exitReadAccess

public void exitReadAccess()

exitWriteAccess

public void exitWriteAccess()

org.openide.util 6.8.22

Built on July 11 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.