class Spurious
extends java.lang.Object
Alternative
s with CSTimer
guards).
SpuriousLog
Modifier and Type | Field and Description |
---|---|
static long |
earlyTimeout
This is the allowed early timeout (in msecs).
|
static boolean |
logging
If logging is required, this flag should be set before any concurrency
is started.
|
Constructor and Description |
---|
Spurious() |
public static boolean logging
SpuriousLog.start()
.
There is no concurrency protection!public static long earlyTimeout
We need this to distinguish between a JVM-early timeout (that should
be accepted) and a spurious wakeup (that should not). The value to
which this field should be set is machine dependant. For JVMs that do not
return early timeouts, it should be set to zero. For many, it should be
left at the default value (4). If logging
is enabled,
counts of spurious wakeups versus accepted early timeouts on select
operations on Alternative
s can be obtained; this field should be
set to minimise the former.
This field should be set before any concurrency is started.
It should only be set once using SpuriousLog.setEarlyTimeout(long)
.
There is no concurrency protection!