| Modifier and Type | Field and Description |
|---|---|
| pack-priv final ReentrantLock | |
| pack-priv volatile RubyThread | lockingThread
The non-fiber thread that currently holds the lock; this will be the same for all fibers associated with that thread. |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | |
| public IRubyObject | |
| public RubyBoolean | |
| public static Mutex | |
| public IRubyObject | |
| public static RubyClass | |
| public IRubyObject | |
| public IRubyObject | |
| public IRubyObject | |
| public RubyBoolean | |
| public boolean | |
| public IRubyObject |
| lock | back to summary |
|---|---|
| pack-priv final ReentrantLock lock | |
| lockingThread | back to summary |
|---|---|
| pack-priv volatile RubyThread lockingThread The non-fiber thread that currently holds the lock; this will be the same for all fibers associated with that thread. | |
| Mutex | back to summary |
|---|---|
| public Mutex(Ruby runtime, RubyClass type) | |
| checkRelocking | back to summary |
|---|---|
| private void checkRelocking(ThreadContext context) | |
| isLocked | back to summary |
|---|---|
| public boolean isLocked() | |
| lock | back to summary |
|---|---|
public IRubyObject lock(ThreadContext context)
| |
| locked_p | back to summary |
|---|---|
public RubyBoolean locked_p(ThreadContext context)
| |
| newInstance | back to summary |
|---|---|
public static Mutex newInstance(ThreadContext context, IRubyObject recv, IRubyObject[] args, Block block)
| |
| owned_p | back to summary |
|---|---|
public IRubyObject owned_p(ThreadContext context)
| |
| setup | back to summary |
|---|---|
| public static RubyClass setup(ThreadContext context, RubyClass Thread, RubyClass Object) | |
| sleep | back to summary |
|---|---|
public IRubyObject sleep(ThreadContext context)
| |
| sleep | back to summary |
|---|---|
public IRubyObject sleep(ThreadContext context, IRubyObject timeout)
| |
| synchronize | back to summary |
|---|---|
public IRubyObject synchronize(ThreadContext context, Block block)
| |
| try_lock | back to summary |
|---|---|
public RubyBoolean try_lock(ThreadContext context)
| |
| tryLock | back to summary |
|---|---|
| public boolean tryLock(ThreadContext context) | |
| unlock | back to summary |
|---|---|
public IRubyObject unlock(ThreadContext context)
| |