RTXI  2.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Mutex Class Reference

#include <mutex.h>


class  Locker

Public Types

enum  type_t { FAST, RECURSIVE }

Public Member Functions

 Mutex (type_t type=FAST)
 ~Mutex (void)
void lock (void)
void unlock (void)
bool tryLock (void)

Private Attributes

pthread_mutex_t mutex

Detailed Description

Definition at line 28 of file mutex.h.

Member Enumeration Documentation


Definition at line 56 of file mutex.h.

Constructor & Destructor Documentation

Mutex::Mutex(Mutex::type_t type = FAST)

Definition at line 35 of file mutex.cpp.

Mutex::~Mutex(void )

Definition at line 53 of file mutex.cpp.

Member Function Documentation

void Mutex::lock(void )

Definition at line 58 of file mutex.cpp.

bool Mutex::tryLock(void )

Definition at line 79 of file mutex.cpp.

void Mutex::unlock(void )

Definition at line 74 of file mutex.cpp.

Member Data Documentation

pthread_mutex_t Mutex::mutex

Definition at line 85 of file mutex.h.

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