Dawn Framework 1.0
Universal data acquisition framework for embedded systems
Static Public Member Functions | List of all members
dawn::CPollLoopRunner Class Reference

Shared runner for poll-based worker threads. More...

#include <poll_loop.hxx>

Static Public Member Functions

static int run (CThreadedObject &threadCtl, struct pollfd *pfds, nfds_t nfds, int timeoutMs, const SPollLoopCallbacks &callbacks, void *priv)
 Run poll loop until quit is requested.
 

Detailed Description

Shared runner for poll-based worker threads.

Definition at line 52 of file poll_loop.hxx.

Member Function Documentation

◆ run()

static int dawn::CPollLoopRunner::run ( CThreadedObject threadCtl,
struct pollfd *  pfds,
nfds_t  nfds,
int  timeoutMs,
const SPollLoopCallbacks callbacks,
void *  priv 
)
inlinestatic

Run poll loop until quit is requested.

The loop periodically wakes by timeout so quit requests can be observed.

Definition at line 61 of file poll_loop.hxx.

References dawn::SPollLoopCallbacks::afterPoll, dawn::SPollLoopCallbacks::beforePoll, and dawn::SPollLoopCallbacks::onPollReady.


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