AVPKit
com::avpkit::ferry::Mutex Class Reference

Internal Only. More...

#include <Mutex.h>

Inheritance diagram for com::avpkit::ferry::Mutex:
Collaboration diagram for com::avpkit::ferry::Mutex:

Public Member Functions

void lock ()
 
void unlock ()
 
- Public Member Functions inherited from com::avpkit::ferry::RefCounted
virtual int32_t acquire ()
 Internal Only. More...
 
virtual int32_t release ()
 Internal Only. More...
 
virtual RefCountedcopyReference ()
 Create a new Java object that refers to the same native object. More...
 
virtual int32_t getCurrentRefCount ()
 Return the current reference count on this object. More...
 
void setJavaAllocator (void *allocator)
 This method is public but not part of the standard API. More...
 
void * getJavaAllocator ()
 This method is public but not part of the standard API. More...
 

Static Public Member Functions

static Mutexmake ()
 

Additional Inherited Members

- Protected Member Functions inherited from com::avpkit::ferry::RefCounted
virtual void destroy ()
 This method is called by RefCounted objects when their Ref Count reaches zero and they are about to be destroyed.
 
- Protected Attributes inherited from com::avpkit::ferry::RefCounted
AtomicIntegermRefCount
 This is the internal reference count, represented as an AtomicInteger to make sure it is thread safe.
 
void * mAllocator
 Not part of public API.
 

Detailed Description

Internal Only.

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.

Definition at line 40 of file Mutex.h.


The documentation for this class was generated from the following files: