|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.org.toot.audio.server.YieldTimingStrategy
public class YieldTimingStrategy
An AudioTimingStategy which uses Thread.yield() and runs with priority Thread.NORM_PRIORITY+1 to avoid blocking other threads excessively. In practice this strategy is no better than the efficient SleepTimingStrategy and all strategies are at the whim of Garbage Collection.
| Field Summary |
|---|
| Fields inherited from interface uk.org.toot.audio.server.AudioTimingStrategy |
|---|
ONE_MILLION |
| Constructor Summary | |
|---|---|
YieldTimingStrategy()
|
|
| Method Summary | |
|---|---|
void |
block(long nowNanos,
long blockNanos)
Block (don't return) for blockNanos. |
int |
getThreadPriority()
Return the required Thread priority for the timing strategy. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public YieldTimingStrategy()
| Method Detail |
|---|
public int getThreadPriority()
AudioTimingStrategy
getThreadPriority in interface AudioTimingStrategy
public void block(long nowNanos,
long blockNanos)
AudioTimingStrategy
block in interface AudioTimingStrategy
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||