#include <LOW_link.h>
Inheritance diagram for LOW_link::commLock:
Public Methods | |
commLock (LOW_link &inLink) | |
Obtain the lock. More... | |
~commLock () | |
Release the lock. More... | |
Private Attributes | |
LOW_link & | link |
Reference to the link the lock is for. More... |
The class is intended to be used in a "locking is creation" design pattern. On creation an exclusive lock is optained for the device, and on destruction the lock is released.
Definition at line 69 of file LOW_link.h.
|
Obtain the lock.
Definition at line 61 of file LOW_link.cpp. References LOW_link::aquireCount, LOW_link::aquirePID, LOW_semaphoreSet::decSem(), LOW_platformMisc::getThreadID(), LOW_semaphoreSet::incSem(), link, LOW_helper_msglog::linkLock_dl, LOW_helper_msglog::printDebug(), and LOW_link::semSet. |
|
Release the lock.
Definition at line 83 of file LOW_link.cpp. References LOW_link::aquireCount, LOW_link::aquirePID, LOW_semaphoreSet::decSem(), LOW_platformMisc::getThreadID(), LOW_semaphoreSet::incSem(), link, LOW_helper_msglog::linkLock_dl, LOW_helper_msglog::printDebug(), and LOW_link::semSet. |
|
Reference to the link the lock is for.
Definition at line 83 of file LOW_link.h. |