org.sqlite
Class Mutex

java.lang.Object
  extended by org.sqlite.Mutex

public class Mutex
extends java.lang.Object

sqlite3_mutex wrapper class.
NOTE: SQLite 3.5.7 based.

See Also:
Mutexes

Constructor Summary
Mutex(int type)
          invoke sqlite3_mutex_alloc() function.
 
Method Summary
 void enter()
          invoke sqlite3_mutex_enter() function.
protected  void finalize()
          invoke free() method.
 void free()
          invoke sqlite3_mutex_free() function.
 boolean held()
          invoke sqlite3_mutex_held() function.
 void leave()
          invoke sqlite3_mutex_leave() function.
 boolean notHeld()
          invoke sqlite3_mutex_notheld() function.
 int try_()
          invoke sqlite3_mutex_try() function.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mutex

public Mutex(int type)
invoke sqlite3_mutex_alloc() function.

Parameters:
type - the mutex type.
See Also:
Mutex Types, Mutexes
Method Detail

enter

public void enter()
invoke sqlite3_mutex_enter() function.

See Also:
Mutexes

free

public void free()
invoke sqlite3_mutex_free() function.

See Also:
Mutexes

leave

public void leave()
invoke sqlite3_mutex_leave() function.

See Also:
Mutexes

try_

public int try_()
invoke sqlite3_mutex_try() function.

See Also:
Mutexes

held

public boolean held()
invoke sqlite3_mutex_held() function.

Returns:
true if the mutex in their argument is held.
See Also:
Mutex Verifcation Routines

notHeld

public boolean notHeld()
invoke sqlite3_mutex_notheld() function.

Returns:
true if the mutex in their argument is not held.
See Also:
Mutex Verifcation Routines

finalize

protected void finalize()
                 throws java.lang.Throwable
invoke free() method.

Overrides:
finalize in class java.lang.Object
Throws:
java.lang.Throwable
See Also:
free()