A public mutex (the mutex data is located in shared memory).
More...
#include <esynch.h>
A public mutex (the mutex data is located in shared memory).
◆ EMutexPublic()
EMutexPublic::EMutexPublic |
( |
Bool |
bInit = True | ) |
|
|
inline |
Default constructor.
- Parameters
-
bInit | if True, the init method will be called from the constructor. |
◆ ~EMutexPublic()
EMutexPublic::~EMutexPublic |
( |
| ) |
|
|
inline |
◆ attach()
Void EMutexPublic::attach |
( |
Int |
mutexid | ) |
|
Associates this public mutex object with the mutex ID located in shared memory.
- Parameters
-
mutexid | the identifier of the mutex. |
◆ destroy()
Void EMutexPublic::destroy |
( |
| ) |
|
Destroys/releases the mutex object.
◆ detach()
Void EMutexPublic::detach |
( |
| ) |
|
Detaches from the public mutex object.
◆ init()
Void EMutexPublic::init |
( |
| ) |
|
Allocates and initializes the mutex object.
◆ mutexId()
Int EMutexPublic::mutexId |
( |
| ) |
|
|
inline |
Retrieves the mutex ID associated with this public mutex.
- Returns
◆ operator EMutexDataPublic &()
EMutexPublic::operator EMutexDataPublic & |
( |
| ) |
|
Reference operator overload.
- Returns
- Retrieves the mutex data associated with this public mutex.
The documentation for this class was generated from the following files:
- /home/vagrant/share/code/epctools/include/epc/esynch.h
- /home/vagrant/share/code/epctools/src/esynch.cpp