Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jacomma.util
Class Semaphore  view Semaphore download Semaphore.java

java.lang.Object
  extended byjacomma.util.Semaphore

public class Semaphore
extends java.lang.Object

Simple Semaphore variable (well, not pthread_cond, since this is just synchronization)


Field Summary
private  int count_
           
 
Constructor Summary
Semaphore()
           
 
Method Summary
 int get()
           
 void post()
           
 void sem_wait()
           
 boolean sem_wait(long t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

count_

private int count_
Constructor Detail

Semaphore

public Semaphore()
Method Detail

post

public void post()

get

public int get()

sem_wait

public void sem_wait()
              throws java.lang.InterruptedException

sem_wait

public boolean sem_wait(long t)
                 throws java.lang.InterruptedException