|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mobicents.media.server.impl.clock.Semaphore
public class Semaphore
| Constructor Summary | |
|---|---|
Semaphore(org.mobicents.media.server.spi.clock.Timer timer,
long precision)
Creates new instance of semaphore. |
|
| Method Summary | |
|---|---|
void |
block(long amount)
Blocks thread for specified amount of time. |
static void |
main(java.lang.String[] args)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Semaphore(org.mobicents.media.server.spi.clock.Timer timer,
long precision)
timer - timer which will be used for time measurement.precision - the precision for time measurement in microseconds| Method Detail |
|---|
public void block(long amount)
amount - the amount of time in milliseconds. must be positive.public static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||