Package | Description |
---|---|
cz.cuni.amis.utils.flag | |
cz.cuni.amis.utils.future |
Modifier and Type | Method and Description |
---|---|
TYPE |
WaitForFlagChange.await()
Note that you may call only await() from one thread! If the instance is already in used
it may produce unwanted behavior (e.g.
|
TYPE |
WaitForFlagChange.await(long timeout,
TimeUnit timeUnit)
Note that you may call only await() from one thread! If the instance is already in used
it may produce unwanted behavior.
|
T |
Flag.waitFor(long timeoutMillis,
T... oneOfTheValue)
Pauses the thread till the flag is set from the outside to one of specified values or times out.
|
T |
Flag.waitFor(T... oneOfTheValue)
Pauses the thread till the flag is set from the outside to one of specified values.
|
T |
Flag.waitForChange()
Pauses the thread till the flag change to another value.
|
T |
Flag.waitForChange(long timeoutMillis)
Pauses the thread till the flag change to another value or timeout.
|
Modifier and Type | Method and Description |
---|---|
RESULT |
IFuture.get()
Waits if necessary for the computation to complete, and then
retrieves its result.
|
RESULT |
RunnableFuture.get(long timeout,
TimeUnit unit) |
RESULT |
IFuture.get(long timeout,
TimeUnit unit)
Waits if necessary for at most the given time for the computation
to complete, and then retrieves its result, if available.
|
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.