summaryrefslogtreecommitdiff
path: root/java/JACE/netsvcs/Token/LockTypes.java
blob: f377529367a41271b77977f77e27b5e0a2432621 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package JACE.netsvcs.Token;

/**
 * Constants related to the default lock and proxy types.  New types
 * of LockHandlers and lock types can be created and registered with
 * the token service on the command line without modifying this.
 * <P>
 * C++ ACE handles RWLOCK in this way:
 * When a request comes through for a RWLOCK, the proxy type is
 * 0 for a read lock request and 1 for a write lock request.
 */
public interface LockTypes
{
  int MUTEX = 0;
  int RWLOCK = 1;
  
  int READ_LOCK_PROXY = 0;
  int WRITE_LOCK_PROXY = 1;
}