org.eclipse.core.runtime.internal.adaptor
Class Semaphore
java.lang.Object
org.eclipse.core.runtime.internal.adaptor.Semaphore
public class Semaphore
- extends Object
Internal class.
notifications
protected long notifications
Semaphore
public Semaphore(int count)
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 String toString()
- Overrides:
toString in class Object
Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.