SLAMflex SE
0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
|
#include <synchronized.h>
Public Member Functions | |
Synchronized () | |
Create an initially unlocked mutex. More... | |
virtual | ~Synchronized () |
The lock is acquired before deconstruction. More... | |
void | lock () const |
Acquire the lock; this blocks until the lock is available. More... | |
void | unlock () const |
Release the lock. More... | |
Protected Attributes | |
pthread_mutex_t | myMutex |
Static Protected Attributes | |
static pthread_mutexattr_t | ourAttr |
static bool | ourInitFlag = false |
A Synchronized object encapsulates a basic mutex. Only one thread can own the lock at a time. Classes should subclass from Synchronized if they want to be able to lock themselves.
Definition at line 14 of file synchronized.h.
CVD::Synchronized::Synchronized | ( | ) |
Create an initially unlocked mutex.
Definition at line 7 of file synchronized.cpp.
|
virtual |
The lock is acquired before deconstruction.
Definition at line 18 of file synchronized.cpp.
void CVD::Synchronized::lock | ( | ) | const |
Acquire the lock; this blocks until the lock is available.
This can be called multiple times by the same thread without deadlocking. Each call should have a matching unlock() call.
Definition at line 24 of file synchronized.cpp.
void CVD::Synchronized::unlock | ( | ) | const |
Release the lock.
Definition at line 29 of file synchronized.cpp.
|
mutableprotected |
Definition at line 33 of file synchronized.h.
|
staticprotected |
Definition at line 31 of file synchronized.h.
|
staticprotected |
Definition at line 32 of file synchronized.h.