Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
fc::variant_stream Class Reference

#include <variant_stream.hpp>

Public Member Functions

 variant_stream (size_t s)
 
 ~variant_stream ()
 
int64_t free ()
 
int64_t claim (int64_t num)
 
int64_t publish (int64_t pos)
 
int64_t wait_free ()
 
variantget (int64_t pos)
 
int64_t begin ()
 
int64_t end ()
 
int64_t wait ()
 

Detailed Description

Thread-safe, circular buffer for passing variants between threads.

Definition at line 10 of file variant_stream.hpp.

Constructor & Destructor Documentation

◆ variant_stream()

fc::variant_stream::variant_stream ( size_t s)

◆ ~variant_stream()

fc::variant_stream::~variant_stream ( )

Member Function Documentation

◆ begin()

int64_t fc::variant_stream::begin ( )

consumer api

◆ claim()

int64_t fc::variant_stream::claim ( int64_t num)

◆ end()

int64_t fc::variant_stream::end ( )

◆ free()

int64_t fc::variant_stream::free ( )

producer api

◆ get()

variant & fc::variant_stream::get ( int64_t pos)

◆ publish()

int64_t fc::variant_stream::publish ( int64_t pos)

◆ wait()

int64_t fc::variant_stream::wait ( )

◆ wait_free()

int64_t fc::variant_stream::wait_free ( )

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