Add semicolon after Tracy preprocessor macros (#2753)

Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
This commit is contained in:
Alex Cristici
2024-08-27 14:02:13 +03:00
committed by GitHub
parent dd104ded89
commit 6a7bf2f7fb
38 changed files with 336 additions and 329 deletions

View File

@@ -73,7 +73,7 @@ bool Mailbox::isOpen() const {
}
void Mailbox::push(std::unique_ptr<Message> message) {
MLN_TRACE_FUNC()
MLN_TRACE_FUNC();
auto idleState = State::Idle;
while (!state.compare_exchange_strong(idleState, State::Processing)) {
if (state == State::Abandoned) {
@@ -87,25 +87,27 @@ void Mailbox::push(std::unique_ptr<Message> message) {
}
}};
MLN_TRACE_ZONE(push lock)
std::lock_guard<std::mutex> pushingLock(pushingMutex);
if (closed) {
state = State::Abandoned;
return;
}
bool wasEmpty = false;
{
MLN_TRACE_ZONE(queue lock)
std::lock_guard<std::mutex> queueLock(queueMutex);
wasEmpty = queue.empty();
queue.push(std::move(message));
}
MLN_TRACE_ZONE(push_lock);
std::lock_guard<std::mutex> pushingLock(pushingMutex);
if (wasEmpty) {
MLN_TRACE_ZONE(schedule)
scheduleToRecieve(schedulerTag);
if (closed) {
state = State::Abandoned;
return;
}
bool wasEmpty = false;
{
MLN_TRACE_ZONE(queue_lock);
std::lock_guard<std::mutex> queueLock(queueMutex);
wasEmpty = queue.empty();
queue.push(std::move(message));
}
if (wasEmpty) {
MLN_TRACE_ZONE(schedule);
scheduleToRecieve(schedulerTag);
}
}
}