A C G L M O R U

A

attemptSemaphore() - Method in class com.antiaction.critical.Multex
Attempt to obtain a free resource, returns either way.
attemptSemaphore() - Method in class com.antiaction.critical.Mutex
Attempt to obtain ownership of the lock, returns either way.

C

com.antiaction.critical - package com.antiaction.critical
Semaphore classes to help manage critical regions.

G

getOwner() - Method in class com.antiaction.critical.Mutex
Returns the thread currently owning this lock.

L

lockRead() - Method in class com.antiaction.critical.RWLock
Obtain a read lock, blocks until access is granted.
lockWrite() - Method in class com.antiaction.critical.RWLock
Obtain a write lock, blocks until exclusive access can be granted.

M

Multex - class com.antiaction.critical.Multex.
Basic counter semaphore, allows for controlled multithreaded access to data.
Multex() - Constructor for class com.antiaction.critical.Multex
Initialize closed multex semaphore.
Multex(int) - Constructor for class com.antiaction.critical.Multex
Initialize multex semaphore with specified initial open slots.
Mutex - class com.antiaction.critical.Mutex.
Mutex semaphore, restricts access to one thread at a time.
Mutex() - Constructor for class com.antiaction.critical.Mutex
Initialize open mutex semaphore.
Mutex(int) - Constructor for class com.antiaction.critical.Mutex
Initialize mutex semaphore.with state.

O

obtainSemaphore() - Method in class com.antiaction.critical.Multex
This call returns when the current thread has obtained a free resource.
obtainSemaphore() - Method in class com.antiaction.critical.Mutex
This call returns when the current thread has obtained ownership of the lock.

R

releaseSemaphore() - Method in class com.antiaction.critical.Multex
Release a resource, increases the amount of open slots.
releaseSemaphore() - Method in class com.antiaction.critical.Mutex
Release ownership of the lock in case the nest count is zero.
RWLock - class com.antiaction.critical.RWLock.
RWLock implements simultanious reads and exclusive writes.
RWLock() - Constructor for class com.antiaction.critical.RWLock
Initialize object for use.

U

unlock() - Method in class com.antiaction.critical.RWLock
Decreases the nest count, if zero the lock is released.

A C G L M O R U