See: Description
| Interface | Description |
|---|---|
| AsyncWork.AsyncWorkListener<T,TError> |
Listener with one method by possible state.
|
| ISynchronizationPoint<TError extends Exception> |
Base interface for synchronization points.
A synchronization point can have 4 states: Blocked: this is the first state, until something happens (resource available, task done...) Unblocked with error: when an error occurs (while processing the task, if the waited resource cannot be obtained, or if the underlying process was itself waiting for a synchronization point that raised an error) Unblocked with cancellation: when explicitly cancelled (because we don't care anymore) or because the underlying process was itself waiting for a synchronization point that has been cancelled. Unblocked with success The state can be consulted using methods isUnblocked, hasError and isCancelled. Listeners can be added to be called when the synchronization point is unblocked. |
| Class | Description |
|---|---|
| AsyncWork<T,TError extends Exception> |
Same as a SynchronizationPoint, except that it contains a result.
|
| JoinPoint<TError extends Exception> |
A JoinPoint allows to wait for several synchronization points or events, instead of a single one.
|
| LockPoint<TError extends Exception> |
A LockPoint is similar to a mutual exclusion, or a synchronized section, but using our threading system, allowing to do something else
while waiting for the lock to be unlocked.
A LockPoint can also be seen as a SynchronizationPoint but reusable. When a thread calls the lock method: if the lock point is not yet locked it becomes locked and the calling thread can continue working, and must call the method unlock once done. if the lock point is already locked, the calling thread is paused, waiting for the lock point to be unlocked. If several threads are waiting for the lock point to be unlocked: Only one is resume and obtain the lock, the others are still paused The order the threads are resumed is undetermined, meaning it is not necessarily in the order they called the lock method |
| ReadWriteLockPoint |
A ReadWriteLockPoint is like a lock point but allows several readers at the same time.
|
| SynchronizationPoint<TError extends Exception> |
Simplest implementation of a synchronization point.
|
| WaitingDataQueueSynchronizationPoint<DataType,TError extends Exception> |
Like a SynchronizationPoint, but with a queue of waiting data.
|
Copyright © 2018. All rights reserved.