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. | |
SharedMemorySegmentLocker (SharedMemorySegment *seg, int minSize=0) | |
The constructor calls lock() on the SharedMemorySement. | |
~SharedMemorySegmentLocker () | |
The destructor calls unlock() on the SharedMemorySement. | |
Public Attributes | |
SharedMemorySegment & | segment |
local reference to SharedMemorySegment |
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.
The destructor calls unlock() on the SharedMemorySement.
local reference to SharedMemorySegment