CompThr: Name segments to indicate that they're posted

This commit is contained in:
2025-09-15 15:15:40 -04:00
parent 7f3bfec835
commit a931f9f01a
+11 -11
View File
@@ -128,7 +128,7 @@ public:
const std::shared_ptr<MindThread> target; const std::shared_ptr<MindThread> target;
public: public:
void joltThreadReq1( void joltThreadReq1_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -139,7 +139,7 @@ public:
callOriginalCbFn(); callOriginalCbFn();
} }
void startThreadReq1( void startThreadReq1_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -152,7 +152,7 @@ public:
callOriginalCbFn(); callOriginalCbFn();
} }
void exitThreadReq1_mainQueue( void exitThreadReq1_mainQueue_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -164,7 +164,7 @@ public:
callOriginalCbFn(); callOriginalCbFn();
} }
void exitThreadReq1_pauseQueue( void exitThreadReq1_pauseQueue_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -177,7 +177,7 @@ public:
callOriginalCbFn(); callOriginalCbFn();
} }
void pauseThreadReq1( void pauseThreadReq1_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -193,7 +193,7 @@ public:
target->pause_io_service.run(); target->pause_io_service.run();
} }
void resumeThreadReq1( void resumeThreadReq1_posted(
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context [[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
) )
{ {
@@ -241,7 +241,7 @@ void MindThread::joltThreadReq(threadLifetimeMgmtOpCbFn callback)
this->getIoService().post( this->getIoService().post(
std::bind( std::bind(
&ThreadLifetimeMgmtOp::joltThreadReq1, &ThreadLifetimeMgmtOp::joltThreadReq1_posted,
request.get(), request)); request.get(), request));
} }
@@ -254,7 +254,7 @@ void MindThread::startThreadReq(threadLifetimeMgmtOpCbFn callback)
this->getIoService().post( this->getIoService().post(
std::bind( std::bind(
&ThreadLifetimeMgmtOp::startThreadReq1, &ThreadLifetimeMgmtOp::startThreadReq1_posted,
request.get(), request)); request.get(), request));
} }
@@ -266,12 +266,12 @@ void MindThread::exitThreadReq(threadLifetimeMgmtOpCbFn callback)
this->getIoService().post( this->getIoService().post(
std::bind( std::bind(
&ThreadLifetimeMgmtOp::exitThreadReq1_mainQueue, &ThreadLifetimeMgmtOp::exitThreadReq1_mainQueue_posted,
request.get(), request)); request.get(), request));
pause_io_service.post( pause_io_service.post(
std::bind( std::bind(
&ThreadLifetimeMgmtOp::exitThreadReq1_pauseQueue, &ThreadLifetimeMgmtOp::exitThreadReq1_pauseQueue_posted,
request.get(), request)); request.get(), request));
} }
@@ -289,7 +289,7 @@ void MindThread::pauseThreadReq(threadLifetimeMgmtOpCbFn callback)
this->getIoService().post( this->getIoService().post(
std::bind( std::bind(
&ThreadLifetimeMgmtOp::pauseThreadReq1, &ThreadLifetimeMgmtOp::pauseThreadReq1_posted,
request.get(), request)); request.get(), request));
} }