public static final class Mutex.Privileged extends Object
try {
enterXAccess ();
yourCustomMethod ();
} finally {
exitXAccess ();
}
can be used.
You must, however, control the related Mutex, i.e. you must be creator of
the Mutex.| Constructor and Description |
|---|
Privileged() |
| Modifier and Type | Method and Description |
|---|---|
void |
enterReadAccess() |
void |
enterWriteAccess() |
void |
exitReadAccess() |
void |
exitWriteAccess() |
Built on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.