Package org.jcsp.net2
Class Mutex
java.lang.Object
org.jcsp.net2.Mutex
A package-visible class that implements a straightforward mutex, for use by Net2AnyChannel
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
claimed
private boolean claimedFlag to mark the mutex as claimed
-
-
Constructor Details
-
Mutex
Mutex()
-
-
Method Details
-
claim
void claim()Claims the mutex for exclusive access -
release
void release()Releases the mutex for exclusive access
-