kilim
Class Semaphore

java.lang.Object
  extended by kilim.Semaphore

public class Semaphore
extends java.lang.Object

Same as Semaphore, but for Kilim tasks. FIXME: Task.pause(PauseReason) is package-access-restricted, so we need to put this class in the kilim package to get access to it.

Author:
quark

Constructor Summary
Semaphore(int n)
           
 
Method Summary
 void acquire()
           
 int observe()
           
 void release()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Semaphore

public Semaphore(int n)
Method Detail

acquire

public void acquire()
             throws kilim.Pausable
Throws:
kilim.Pausable

release

public void release()

observe

public int observe()