public final class KeyedSemaphore extends Object
Constructor and Description |
---|
KeyedSemaphore() |
Modifier and Type | Method and Description |
---|---|
void |
enterIOCriticalSection(String key) |
int |
getNumberOfSemaphores() |
void |
leaveIOCriticalSection(String key) |
void |
remove(String key)
It is assumed the current thread has locked the lock previously.
|
public void leaveIOCriticalSection(String key)
public void remove(String key)
key
- public void enterIOCriticalSection(String key) throws IOException
IOException
public int getNumberOfSemaphores()
Copyright © 2018. All Rights Reserved.