Skip to main content

YoloTokenStore Class

Declaration

class simaai::neat::graph::strict_sync::YoloTokenStore { ... }

Included Headers

#include <StrictSync.h>

Public Constructors Index

YoloTokenStore (size_t streams)

Public Member Functions Index

voidenqueue (size_t idx, int64_t frame_id)
std::optional< OrderedToken >take_ordered ()
std::optional< Token >take (size_t idx)
Statsstats (size_t idx) const

Private Member Attributes Index

std::mutexorder_mu_
std::deque< OrderedToken >order_q_
std::vector< State >states_

Private Static Functions Index

static int64_tnow_ms_i64 ()

Definition at line 66 of file StrictSync.h.

Public Constructors

YoloTokenStore()

simaai::neat::graph::strict_sync::YoloTokenStore::YoloTokenStore (size_t streams)
explicit

Definition at line 87 of file StrictSync.h.

Public Member Functions

enqueue()

void simaai::neat::graph::strict_sync::YoloTokenStore::enqueue (size_t idx, int64_t frame_id)

Definition at line 89 of file StrictSync.h.

stats()

Stats simaai::neat::graph::strict_sync::YoloTokenStore::stats (size_t idx)

Definition at line 92 of file StrictSync.h.

take()

std::optional<Token> simaai::neat::graph::strict_sync::YoloTokenStore::take (size_t idx)

Definition at line 91 of file StrictSync.h.

take_ordered()

std::optional<OrderedToken> simaai::neat::graph::strict_sync::YoloTokenStore::take_ordered ()

Definition at line 90 of file StrictSync.h.

Private Member Attributes

order_mu_

std::mutex simaai::neat::graph::strict_sync::YoloTokenStore::order_mu_
mutable

Definition at line 103 of file StrictSync.h.

103 mutable std::mutex order_mu_;

order_q_

std::deque<OrderedToken> simaai::neat::graph::strict_sync::YoloTokenStore::order_q_

Definition at line 104 of file StrictSync.h.

104 std::deque<OrderedToken> order_q_;

states_

std::vector<State> simaai::neat::graph::strict_sync::YoloTokenStore::states_

Definition at line 105 of file StrictSync.h.

105 std::vector<State> states_;

Private Static Functions

now_ms_i64()

int64_t simaai::neat::graph::strict_sync::YoloTokenStore::now_ms_i64 ()
static

Definition at line 101 of file StrictSync.h.


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


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.1.