
public class Mutex extends RefCounted
This object exists so that Native code can get access to
thread safe locking objects if they need it.
Implements a blocking Mutually-Exclusive lock
by wrapping a Java lock.
If not running inside Java, lock() and unlock()
are NO-OPs.
| Modifier and Type | Method and Description |
|---|---|
Mutex |
copyReference()
Create a new Mutex object that is actually referring to the
exact same underlying native object.
|
boolean |
equals(Object obj)
Compares two values, returning true if the underlying objects in native code are the same object.
|
int |
hashCode()
Get a hashable value for this object.
|
void |
lock() |
static Mutex |
make() |
void |
unlock() |
delete, getCurrentRefCountpublic Mutex copyReference()
copyReference in class RefCountedpublic boolean equals(Object obj)
public int hashCode()
public static Mutex make()
public void lock()
public void unlock()
Copyright © 2018 Humble Software. All rights reserved.