Image Component Library (ICL)
|
an easy way to lock a SharedMemorySegment, unlocking at destruction. More...
#include <SharedMemorySegment.h>
Public Member Functions | |
SharedMemorySegmentLocker (SharedMemorySegment &seg, int minSize=0) | |
The constructor calls lock() on the SharedMemorySement. More... | |
SharedMemorySegmentLocker (SharedMemorySegment *seg, int minSize=0) | |
The constructor calls lock() on the SharedMemorySement. More... | |
~SharedMemorySegmentLocker () | |
The destructor calls unlock() on the SharedMemorySement. More... | |
Public Attributes | |
SharedMemorySegment & | segment |
local reference to SharedMemorySegment More... | |
an easy way to lock a SharedMemorySegment, unlocking at destruction.
icl::io::SharedMemorySegmentLocker::SharedMemorySegmentLocker | ( | SharedMemorySegment & | seg, |
int | minSize = 0 |
||
) |
The constructor calls lock() on the SharedMemorySement.
icl::io::SharedMemorySegmentLocker::SharedMemorySegmentLocker | ( | SharedMemorySegment * | seg, |
int | minSize = 0 |
||
) |
The constructor calls lock() on the SharedMemorySement.
icl::io::SharedMemorySegmentLocker::~SharedMemorySegmentLocker | ( | ) |
The destructor calls unlock() on the SharedMemorySement.
SharedMemorySegment& icl::io::SharedMemorySegmentLocker::segment |
local reference to SharedMemorySegment