Public Member Functions | Protected Attributes
Lockable Class Reference

#include <console.h>

Inheritance diagram for Lockable:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void lock ()
 Lock.
 Lockable ()
void signal ()
 Send signal.
void unlock ()
 Unlock.
void wait (double interval)
 Wait for signal.
virtual ~Lockable ()

Protected Attributes

pthread_cond_t condition_
 Condition variable.
pthread_mutex_t mutex_
 Mutual exclusion lock.

Detailed Description

Definition at line 49 of file console.h.


Constructor & Destructor Documentation

Lockable::Lockable ( ) [inline]

Definition at line 56 of file console.h.

virtual Lockable::~Lockable ( ) [inline, virtual]

Definition at line 62 of file console.h.


Member Function Documentation

void Lockable::lock ( ) [inline]

Lock.

Definition at line 69 of file console.h.

void Lockable::signal ( ) [inline]

Send signal.

Definition at line 84 of file console.h.

void Lockable::unlock ( ) [inline]

Unlock.

Definition at line 72 of file console.h.

void Lockable::wait ( double  interval)

Wait for signal.

Parameters:
intervalTime to wait in [s]. A value of 0 will cause the function to wait indefinitely.
Note:
May wake up spuriously.
Must be locked.

Definition at line 422 of file console.cpp.


Member Data Documentation

pthread_cond_t Lockable::condition_ [protected]

Condition variable.

Definition at line 53 of file console.h.

pthread_mutex_t Lockable::mutex_ [protected]

Mutual exclusion lock.

Definition at line 52 of file console.h.


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


threemxl
Author(s):
autogenerated on Thu Jun 6 2019 21:10:52