Pauser.SleepyWarningMIN_PROCESSORS, SLEEPY| Constructor and Description |
|---|
YieldingPauser(int minBusy)
first it will busy wait, then it will yield, then sleep for a small amount of time, then
increases to a large amount of time.
|
| Modifier and Type | Method and Description |
|---|---|
long |
countPaused() |
void |
pause() |
void |
reset() |
long |
timePaused() |
void |
unpause() |
public YieldingPauser(int minBusy)
minBusy - the min number of times it will go around doing nothing, after this is
reached it will then start to yieldpublic long timePaused()
timePaused in interface Pauserpublic long countPaused()
countPaused in interface PauserCopyright © 2019. All rights reserved.