站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > NetBeans API Javadoc 5.5.0

Mutex.Privileged (NetBeans Utilities API) - NetBeans API Javadoc 5.5.0

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 May 28 2007.  |  Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.