org.eclipse.core.runtime.internal.adaptor
Class Semaphore

java.lang.Object
  extended by org.eclipse.core.runtime.internal.adaptor.Semaphore

public class Semaphore
extends java.lang.Object

Internal class.


Field Summary
protected  long notifications
           
 
Constructor Summary
Semaphore(int count)
           
 
Method Summary
 void acquire()
          Attempts to acquire this semaphore.
 boolean acquire(long delay)
          Attempts to acquire this semaphore.
 void release()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

notifications

protected long notifications
Constructor Detail

Semaphore

public Semaphore(int count)
Method Detail

acquire

public void acquire()
Attempts to acquire this semaphore. Returns only when the semaphore has been acquired.


acquire

public boolean acquire(long delay)
Attempts to acquire this semaphore. Returns true if it was successfully acquired, and false otherwise.


release

public void release()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object