File SolidSyslogSleep.h¶
FileList > Core > Interface > SolidSyslogSleep.h
The millisecond-sleep callback typedef the integrator injects to drive the bounded wait-and-retry loops without busy-spinning.
#include "SolidSyslogExternC.h"#include <stdint.h>
Public Types Documentation¶
SolidSyslogSleepFunction¶
Millisecond sleep callback injected via config.
Drives the bounded wait-and-retry loops that would otherwise busy-spin: the TLS handshake poll, and the lwIP TCP connect and DNS resolve spins.
It must wait at least milliseconds. Those loops read no clock: each budget is the sum of the sleeps requested, so a sleep that returns early or only yields shortens it, and one that rounds up to a scheduler tick lengthens it. On an RTOS, wrap its delay and round a non-zero request up to one tick.
Injecting it keeps platform sleep APIs out of the library and lets tests pass a no-op with no conditional compilation.
The documentation for this class was generated from the following file Core/Interface/SolidSyslogSleep.h