com.jniwrapper.win32.system
Class Mutex

java.lang.Object
  extended by com.jniwrapper.Parameter
      extended by com.jniwrapper.Pointer.Void
          extended by com.jniwrapper.win32.Handle
              extended by com.jniwrapper.win32.system.Mutex
All Implemented Interfaces:
com.jniwrapper.IntegerParameter, com.jniwrapper.PointerParameter

public class Mutex
extends Handle

Provides functionality for Windows mutex handling.


Field Summary
 
Fields inherited from class com.jniwrapper.win32.Handle
INFINITE_TIMEOUT, INVALID_HANDLE_VALUE, STATUS_ABANDONED_WAIT_0, STATUS_TIMEOUT, STATUS_WAIT_0
 
Fields inherited from class com.jniwrapper.Parameter
LICENSE_TYPE, V
 
Method Summary
static Mutex createMutex(boolean initialOwner, java.lang.String mutexName)
           
static Mutex createMutex(com.jniwrapper.Parameter mutexAttributes, boolean initialOwner, java.lang.String mutexName)
           
 boolean exists()
           
static Mutex openMutex(int desiredAccess, boolean inheritHandle, java.lang.String mutexName)
           
 
Methods inherited from class com.jniwrapper.win32.Handle
clone, closeHandle, equals, waitFor, waitFor
 
Methods inherited from class com.jniwrapper.Pointer.Void
asFunction, asFunction, asTypedPointer, castTo, castTo, getDebugInfo, getLength, getValue, hashCode, isNull, read, setValue, toString, write
 
Methods inherited from class com.jniwrapper.Parameter
, a, a, acceptIOPerformer, asReturnValue, b, dataBufferAssigned, getAlignedLength, getAlignmentRequirement, getDataBuffer, getDataBufferOffset, indent, pop, push, read, read, setDataBuffer, toByteArray, write
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

exists

public boolean exists()

openMutex

public static Mutex openMutex(int desiredAccess,
                              boolean inheritHandle,
                              java.lang.String mutexName)

createMutex

public static Mutex createMutex(com.jniwrapper.Parameter mutexAttributes,
                                boolean initialOwner,
                                java.lang.String mutexName)

createMutex

public static Mutex createMutex(boolean initialOwner,
                                java.lang.String mutexName)