Flow 2.0.0
Flow project: Public API.
Classes | Namespaces | Functions
thread_lcl.hpp File Reference

Classes

class  flow::util::Thread_local_state_registry< Thread_local_state_t >
 Similar to boost::thread_specific_ptr<T> but with built-in lazy-init semantics; and more importantly on destruction deletes any outstanding Ts belonging to threads that are still up; plus allows iteration through all per-thread data. More...
 
struct  flow::util::Thread_local_state_registry< Thread_local_state_t >::Metadata
 General info (as of this writing for logging only) about a given entry (thread/object) in state_per_thread(). More...
 
class  flow::util::Polled_shared_state< Shared_state_t >
 Optional-use companion to Thread_local_state_registry that enables the Polled_share_state pattern wherein from some arbitrary thread user causes the extant thread-locally-activated threads opportunistically collaborate on/using locked shared state, with the no-op fast-path being gated by a high-performance-low-strictness atomic-flag being false. More...
 

Namespaces

namespace  flow
 Catch-all namespace for the Flow project: A collection of various production-quality modules written in modern C++17, originally by ygoldfel.
 
namespace  flow::util
 Flow module containing miscellaneous general-use facilities that don't fit into any other Flow module.
 

Functions

template<typename Thread_local_state_t >
std::ostream & flow::util::operator<< (std::ostream &os, const Thread_local_state_registry< Thread_local_state_t > &val)
 Serializes a Thread_local_state_registry to a standard output stream. More...