0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-29 18:22:50 +01:00

ircd:🆑 Prevent notify to same context in callback.

This commit is contained in:
Jason Volk 2021-01-14 19:19:38 -08:00
parent 383637ae51
commit c34045c9d8

View file

@ -881,6 +881,9 @@ noexcept
std::exchange(hdata->c, nullptr)
};
if(likely(c == ctx::current))
return;
ctx::notify(*c);
std::atomic_thread_fence(std::memory_order_release);
}