Skip to main content

chronon::HostServiceRegistration

More...

#include <HostServices.hpp>

Public Classes

Name
structStats

Public Functions

Name
Statsstats() const
voidsetRunnable(bool value)
size_tpoll(bool urgent =false)
voiddetach()
voidactivate(HostService & service)
HostServiceRegistration(HostService & service)

Public Attributes

Name
thread_local uint64_tthread_service_ns
std::atomic< bool >ready

Detailed Description

class chronon::HostServiceRegistration;

A registration stays alive after removal so cached producer assistance cannot call a destroyed service. detach() waits for the last claim, not for output.

Public Functions Documentation

function stats

inline Stats stats() const

function setRunnable

inline void setRunnable(
bool value
)

Pause claims while a bounded handoff is owned by I/O. Publications still latch ready; completion resumes claims without losing those notifications.

function poll

inline size_t poll(
bool urgent =false
)

function detach

inline void detach()

function activate

inline void activate(
HostService & service
)

function HostServiceRegistration

inline explicit HostServiceRegistration(
HostService & service
)

Public Attributes Documentation

variable thread_service_ns

static thread_local uint64_t thread_service_ns = 0;

variable ready

std::atomic< bool > ready {true};

Updated on 2026-09-22 at 07:28:40 +0000