A B C I L N P R S U V

A

acquire() - Method in class BSsync.Semaphore
Wait until a permit is available, and take one
await() - Method in interface BSsync.Condition
Wait for notification.

B

BSsync - package BSsync
 

C

Condition - Interface in BSsync
This class implements condition variables similar to POSIX pthreads.

I

inuse - Variable in class BSsync.Lock
The lock status

L

Lock - Class in BSsync
A simple non-reentrant mutual exclusion lock.
Lock() - Constructor for class BSsync.Lock
Constructor for a mutex lock.
Lock(String) - Constructor for class BSsync.Lock
Constructor for a mutex lock with a given name.
lock() - Method in class BSsync.Lock
Acquire the mutex lock.

N

newCondition() - Method in class BSsync.Lock
Create and return a new condition variable associated with this lock.
newCondition(String) - Method in class BSsync.Lock
Create and return a new condition variable associated with this lock.

P

permits_ - Variable in class BSsync.Semaphore
current number of available permits

R

release() - Method in class BSsync.Semaphore
Release a permit

S

Semaphore - Class in BSsync
Base class for counting semaphores.
Semaphore(int) - Constructor for class BSsync.Semaphore
Create a Semaphore with the given initial number of permits.
Semaphore(int, String) - Constructor for class BSsync.Semaphore
Create a named Semaphore with the given initial number of permits.
signal() - Method in interface BSsync.Condition
Notify a waiting thread.
signalAll() - Method in interface BSsync.Condition
Notify all waiting threads

U

unlock() - Method in class BSsync.Lock
Release the mutex lock.

V

verbose - Static variable in class BSsync.Lock
Set this variable to true for debugging output
verbose - Static variable in class BSsync.Semaphore
Set this variable to true for debugging output

A B C I L N P R S U V