Internal library classes


Files

file  DefaultAllocator.h
 Allocator for blocks inside shared segment.
file  DefaultRefCounter.h
 Reference counter for shared segment.
file  MutexLock.h
 Platform-independent mutex representation.
file  SegmentHeader.h
 Object placed at begin of each shared segment.
file  SharedSegment.h
 Platform-indepent shared segment representation.

Classes

class  Share::DefaultAllocator
 Allocator for blocks inside shared segment. More...
class  Share::DefaultRefCounter
 Reference counter for shared segment. More...
class  Share::Mutex
 Platform-independent mutex representation. More...
struct  Share::Mutex::LockData
 Mutex per-lock specific data. More...
class  Share::MutexLock
 Mutex lock RAII object. More...
class  Share::SegmentHeader
 Object placed at begin of each shared segment. More...
class  Share::SharedSegment
 Platform independent shared segment representation. More...

Defines

#define BITS_ALIGNMENT   8
 Define memory alignment in bits that allocator work with.

Functions

template<unsigned char bitsAlignment, typename T>
Share::genericAlignmenter (T input)
 Generic number alignmenter.
template<typename T>
Share::alignmenter (T input)
 Number alignmenter using BITS_ALIGNMENT macro.

Define Documentation

#define BITS_ALIGNMENT   8

Define memory alignment in bits that allocator work with.

Attention:
This number could not be greater then OS's alignment used in SHM API

Definition at line 19 of file DefaultAllocator.h.


Function Documentation

template<typename T>
T Share::alignmenter ( input  )  [inline]

Number alignmenter using BITS_ALIGNMENT macro.

Parameters:
input number to align
Returns:
aligned number

Definition at line 48 of file DefaultAllocator.h.

template<unsigned char bitsAlignment, typename T>
T Share::genericAlignmenter ( input  )  [inline]

Generic number alignmenter.

Template parameter bitsAlignment specifies count of bits from end to align to.

Parameters:
input number to align
Returns:
aligned number

Definition at line 32 of file DefaultAllocator.h.


Generated on Sun Aug 26 17:43:00 2007 for ShareLibrary by  doxygen 1.5.2