We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a6ff1ae commit ca196a6Copy full SHA for ca196a6
include/nbl/system/IAsyncQueueDispatcher.h
@@ -257,6 +257,7 @@ class IAsyncQueueDispatcherBase
257
assert(m_future);
258
m_future->destruct();
259
m_future->state.exchangeNotify<true>(state_enum::INITIAL,state_enum::LOCKED);
260
+ m_future = nullptr;
261
}
262
//! Can only be called once!
263
template<typename U=T> requires (std::is_same_v<U,T> && !std::is_void_v<U>)
include/nbl/system/atomic_state.h
@@ -54,9 +54,9 @@ class atomic_state_t
54
STATE expected = from;
55
while (!tryTransition(to,expected))
56
{
57
- state.wait(static_cast<uint32_t>(expected));
58
if (expected==abortState)
59
return false;
+ state.wait(static_cast<uint32_t>(expected));
60
expected = from;
61
62
assert(expected==from);
0 commit comments