Constructor and Description |
---|
LockMutex() |
Modifier and Type | Method and Description |
---|---|
void |
enterCriticalSection(boolean readLockRequested)
Enter a critical section.
|
void |
leaveCriticalSection()
Leave a critical section.
|
public void enterCriticalSection(boolean readLockRequested)
Lock
enterCriticalSection
in interface Lock
readLockRequested
- true implies a read lock,false implies write lock.Lock.leaveCriticalSection()
public void leaveCriticalSection()
Lock
leaveCriticalSection
in interface Lock
Lock.enterCriticalSection(boolean)
Copyright ? 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP