Skip to content

Commit ca196a6

Browse files
tiny bugs
1 parent a6ff1ae commit ca196a6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

include/nbl/system/IAsyncQueueDispatcher.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,7 @@ class IAsyncQueueDispatcherBase
257257
assert(m_future);
258258
m_future->destruct();
259259
m_future->state.exchangeNotify<true>(state_enum::INITIAL,state_enum::LOCKED);
260+
m_future = nullptr;
260261
}
261262
//! Can only be called once!
262263
template<typename U=T> requires (std::is_same_v<U,T> && !std::is_void_v<U>)

include/nbl/system/atomic_state.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ class atomic_state_t
5454
STATE expected = from;
5555
while (!tryTransition(to,expected))
5656
{
57-
state.wait(static_cast<uint32_t>(expected));
5857
if (expected==abortState)
5958
return false;
59+
state.wait(static_cast<uint32_t>(expected));
6060
expected = from;
6161
}
6262
assert(expected==from);

0 commit comments

Comments
 (0)