Skip to content
Start free evaluation

pdcomm_logging_flush

Function

Waits until queued log records are written to the sink.

PdcommStatus pdcomm_logging_flush(void)

Declared in: #include <pdcomm.h>

Waits up to two seconds for the logging thread to acknowledge the flush. When logging has never been enabled, the call succeeds immediately.

Returns

#PDCOMM_OK when the records were flushed or logging is inactive; #PDCOMM_INTERNAL_ERROR when the flush failed, timed out, or could not be queued.

Notes

  • Thread safety: may be called from any thread.