Loading...
Searching...
No Matches
StorePoll Struct Reference

One store's polling: its interval, whether it polls at all, and when it is next due. More...

#include <store_poll.h>

Data Fields

time_t next
 Wall-clock second the next recurring poll is due.
int poll_min
 Minutes between polls. 0 or less means no recurring poll.
bool live
 True on a live face. A store seeded with fixtures never polls.
bool pinned
 True when init started the store not live, so no reconfigure turns it live.

Detailed Description

One store's polling: its interval, whether it polls at all, and when it is next due.

A StorePoll has to begin zeroed, as a static one does, or go through store_poll_start before anything else reads it. Zero one on the stack or the heap before its first store_poll_set, or a stray pinned keeps it off for good.


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