Image Component Library (ICL)
Public Member Functions | Public Attributes | List of all members
icl::io::SharedMemorySegmentLocker Struct Reference

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

SharedMemorySegmentsegment
 local reference to SharedMemorySegment More...
 

Detailed Description

an easy way to lock a SharedMemorySegment, unlocking at destruction.

Constructor & Destructor Documentation

◆ SharedMemorySegmentLocker() [1/2]

icl::io::SharedMemorySegmentLocker::SharedMemorySegmentLocker ( SharedMemorySegment seg,
int  minSize = 0 
)

The constructor calls lock() on the SharedMemorySement.

◆ SharedMemorySegmentLocker() [2/2]

icl::io::SharedMemorySegmentLocker::SharedMemorySegmentLocker ( SharedMemorySegment seg,
int  minSize = 0 
)

The constructor calls lock() on the SharedMemorySement.

◆ ~SharedMemorySegmentLocker()

icl::io::SharedMemorySegmentLocker::~SharedMemorySegmentLocker ( )

The destructor calls unlock() on the SharedMemorySement.

Member Data Documentation

◆ segment

SharedMemorySegment& icl::io::SharedMemorySegmentLocker::segment

local reference to SharedMemorySegment


The documentation for this struct was generated from the following file: