|
libbio
|
#include <CowControlBlock.h>
Public Member Functions | |
| CowControlBlock (T *payload, bool immutable) | |
Public Attributes | |
| CowRefCount | mRefCount |
| T * | mPayload |
| bool | mImmutable |
The shared control block behind CowPtr (CowPtr.h): a plain struct (no vtable, no ThreadSafe inheritance) so it adds no bytes beyond the refcount + payload ptr + the immutable flag. An OWNED CowPtr points at one of these; a BORROWED CowPtr has none.
| T | the owned payload type. |
|
inline |
| bool bio::CowControlBlock< T >::mImmutable |
| T* bio::CowControlBlock< T >::mPayload |
| CowRefCount bio::CowControlBlock< T >::mRefCount |