#include <Thread.h>
Public Member Functions | |
| EnhancedMutEx () | |
| Default constructor. | |
| bool | askExclusiveAccess (Time timeout) |
| Aks to use the resources. | |
| void | leaveExclusiveAccess () |
| Release the resource. | |
| bool | allowed (void) |
| Says if the thread is allowed to use the resource or not. | |
| string | print () |
| Print. | |
For example see the toys example below.
It does NOT work with shared memory among processes.
| MipBaselib::EnhancedMutEx::EnhancedMutEx | ( | ) |
Default constructor.
| bool MipBaselib::EnhancedMutEx::askExclusiveAccess | ( | Time | timeout | ) |
Aks to use the resources.
| void MipBaselib::EnhancedMutEx::leaveExclusiveAccess | ( | ) |
Release the resource.
| bool MipBaselib::EnhancedMutEx::allowed | ( | void | ) | [inline] |
Says if the thread is allowed to use the resource or not.
It must be called at the begin of every method of the MutExed resource.
| string MipBaselib::EnhancedMutEx::print | ( | ) |
Print.
1.5.6