Fix formatting

Signed-off-by: JCW <a1q123456@users.noreply.github.com>
This commit is contained in:
JCW
2025-09-16 16:19:32 +01:00
parent a1f6580e54
commit 6fd30ebde1
3 changed files with 12 additions and 11 deletions

View File

@@ -227,13 +227,16 @@ public:
{
auto coro = std::make_shared<JobQueue::Coro>(
Coro_create_t{}, env.app().getJobQueue(), JobType::jtCLIENT, "test", [](auto coro) {
Coro_create_t{},
env.app().getJobQueue(),
JobType::jtCLIENT,
"test",
[](auto coro) {
});
}
pass();
}
void

View File

@@ -56,7 +56,9 @@ JobQueue::Coro::Coro(
inline JobQueue::Coro::~Coro()
{
XRPL_ASSERT(state_ != CoroState::Running, "ripple::JobQueue::Coro::~Coro : is not running");
XRPL_ASSERT(
state_ != CoroState::Running,
"ripple::JobQueue::Coro::~Coro : is not running");
exiting_ = true;
// Resume the coroutine so that it has a chance to clean things up
if (state_ == CoroState::Suspended)
@@ -65,7 +67,9 @@ inline JobQueue::Coro::~Coro()
}
#ifndef NDEBUG
XRPL_ASSERT(state_ == CoroState::Finished, "ripple::JobQueue::Coro::~Coro : is finished");
XRPL_ASSERT(
state_ == CoroState::Finished,
"ripple::JobQueue::Coro::~Coro : is finished");
#endif
}

View File

@@ -63,13 +63,7 @@ public:
friend class JobQueue;
private:
enum class CoroState
{
None,
Suspended,
Running,
Finished
};
enum class CoroState { None, Suspended, Running, Finished };
detail::LocalValues lvs_;
JobQueue& jq_;