Signbit MPSCQ  0.5.0
Public Member Functions | Public Attributes | List of all members
sbit::mpscq::Queue::Envelope Struct Reference

#include <mpscq.h>

Collaboration diagram for sbit::mpscq::Queue::Envelope:
Collaboration graph
[legend]

Public Member Functions

void appendTo (std::atomic< Envelope * > *head)
 
void recycle ()
 

Public Attributes

Envelopenext
 Next element in the queue.
 
std::atomic< Envelope * > * workerPool
 Where to return the object after the message is processed.
 
std::atomic< Envelope * > * ownerPool
 Where to return the object when the worker is shut down.
 

Detailed Description

Header/metadata for a message

Member Function Documentation

◆ appendTo()

void sbit::mpscq::Queue::Envelope::appendTo ( std::atomic< Envelope * > *  head)
inline

Atomically appends this element to the specified queue

Parameters
headis the head of the queue

◆ recycle()

void sbit::mpscq::Queue::Envelope::recycle ( )
inline

Recycles this element by returning it to its worker pool


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