#include <BCondInt.h>
Public Member Functions | |
| BCondResource () | |
| ~BCondResource () | |
| int | lock (uint32_t timeOutUs=0) |
| Lock the resource, will wait for all usage to be 0. | |
| int | unlock () |
| Unlock the resource. | |
| int | start (uint32_t timeOutUs=0) |
| Start using the resource. | |
| int | end () |
| Finish using the resource. | |
| int | locked () |
| int | inUse () |
Private Attributes | |
| pthread_mutex_t | omutex |
| pthread_cond_t | ocond |
| int | olock |
| int | ouse |
| BCondResource::BCondResource | ( | ) |
| BCondResource::~BCondResource | ( | ) |
| int BCondResource::end | ( | ) |
Finish using the resource.
| int BCondResource::inUse | ( | ) |
| int BCondResource::lock | ( | uint32_t | timeOutUs = 0 |
) |
Lock the resource, will wait for all usage to be 0.
| int BCondResource::locked | ( | ) |
| int BCondResource::start | ( | uint32_t | timeOutUs = 0 |
) |
Start using the resource.
| int BCondResource::unlock | ( | ) |
Unlock the resource.
pthread_cond_t BCondResource::ocond [private] |
int BCondResource::olock [private] |
pthread_mutex_t BCondResource::omutex [private] |
int BCondResource::ouse [private] |
1.4.7