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.
Public Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CVD::Synchronized Class Reference

#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
 

Detailed Description

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.

Constructor & Destructor Documentation

CVD::Synchronized::Synchronized ( )

Create an initially unlocked mutex.

Definition at line 7 of file synchronized.cpp.

CVD::Synchronized::~Synchronized ( )
virtual

The lock is acquired before deconstruction.

Definition at line 18 of file synchronized.cpp.

Member Function Documentation

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.

Member Data Documentation

pthread_mutex_t CVD::Synchronized::myMutex
mutableprotected

Definition at line 33 of file synchronized.h.

pthread_mutexattr_t CVD::Synchronized::ourAttr
staticprotected

Definition at line 31 of file synchronized.h.

bool CVD::Synchronized::ourInitFlag = false
staticprotected

Definition at line 32 of file synchronized.h.


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