6#include "dawn/proto/nimble/host.hxx"
9#include "modbus/mbport.h"
10#include "nimble/nimble_port.h"
14void CProtoNimbleHost::thread()
16 DAWNINFO(
"start Host thread\n");
20#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
25 while (!threadCtl.shouldQuit());
32 DAWNINFO(
"clean Host thread\n");
35void CProtoNimbleHost::start()
41void CProtoNimbleHost::stop()
45#ifdef CONFIG_DAWN_PROTO_NIMBLE_DUMMY
46 threadCtl.requestStop();
51 DAWNERR(
"nimble host stop not supported on real backend\n");
59bool CProtoNimbleHost::isRunning()
const
bool isRunning() const
Check if the worker thread is running.
int threadStop()
Stop the worker thread.
int threadStart()
Start the worker thread.
void setThreadFunc(Func &&func)
Assign the function executed by threadStart().
Out-of-tree user-extension hooks for Dawn.