Formatting
This commit is contained in:
+12
-10
@@ -139,7 +139,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling JOLT request."
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
|
"JOLT request."
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
target->io_service.stop();
|
target->io_service.stop();
|
||||||
@@ -150,7 +151,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling startThread."
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
|
"startThread."
|
||||||
<< "\n";
|
<< "\n";
|
||||||
|
|
||||||
// Execute private setup sequence here
|
// Execute private setup sequence here
|
||||||
@@ -163,8 +165,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling exitThread "
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
"(main queue)." << std::endl;
|
"exitThread (main queue)." << "\n";
|
||||||
|
|
||||||
target->cleanup();
|
target->cleanup();
|
||||||
target->io_service.stop();
|
target->io_service.stop();
|
||||||
@@ -175,8 +177,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling exitThread "
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
"(pause queue)." << std::endl;
|
"exitThread (pause queue)."<< "\n";
|
||||||
|
|
||||||
target->cleanup();
|
target->cleanup();
|
||||||
target->pause_io_service.stop();
|
target->pause_io_service.stop();
|
||||||
@@ -188,8 +190,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling pauseThread."
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
<< std::endl;
|
"pauseThread." << "\n";
|
||||||
|
|
||||||
/* We have to invoke the callback here before moving on because
|
/* We have to invoke the callback here before moving on because
|
||||||
* our next operation is going to block the thread, so it won't
|
* our next operation is going to block the thread, so it won't
|
||||||
@@ -204,8 +206,8 @@ public:
|
|||||||
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
[[maybe_unused]] std::shared_ptr<ThreadLifetimeMgmtOp> context
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
std::cout << "Thread '" << target->name << "': handling resumeThread."
|
std::cout << __func__ << ": Thread '" << target->name << "': handling "
|
||||||
<< std::endl;
|
"resumeThread." << "\n";
|
||||||
|
|
||||||
target->pause_io_service.stop();
|
target->pause_io_service.stop();
|
||||||
callOriginalCbFn();
|
callOriginalCbFn();
|
||||||
|
|||||||
Reference in New Issue
Block a user