#include <console.h>
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
Member Function Documentation
Wait for signal.
- Parameters:
-
interval | Time 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
Condition variable.
Definition at line 53 of file console.h.
Mutual exclusion lock.
Definition at line 52 of file console.h.
The documentation for this class was generated from the following files: