org.basex.server
Class Semaphore

java.lang.Object
  extended by org.basex.server.Semaphore

public final class Semaphore
extends Object

Management of executing read/write processes.

Author:
Workgroup DBIS, University of Konstanz 2005-10, ISC License, Andreas Weiler

Constructor Summary
Semaphore()
           
 
Method Summary
 void after(boolean w)
          Modifications after executing a process.
 void before(boolean w)
          Modifications before executing a process.
 boolean writing(Proc pr, Context ctx)
          Checks if the specified process is a writer.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Semaphore

public Semaphore()
Method Detail

writing

public boolean writing(Proc pr,
                       Context ctx)
Checks if the specified process is a writer.

Parameters:
pr - process
ctx - database context
Returns:
result of check

before

public void before(boolean w)
Modifications before executing a process.

Parameters:
w - writing flag

after

public void after(boolean w)
Modifications after executing a process.

Parameters:
w - writing flag