0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

ircd::ctx::dock: Make notify() an unconditional notify rather than direct jump.

This commit is contained in:
Jason Volk 2018-10-21 00:58:04 -07:00
parent 045a944911
commit 10d59dec9a

View file

@ -248,14 +248,7 @@ inline void
ircd::ctx::dock::notify(ctx &ctx)
noexcept
{
// This branch handles dock.notify() being called from outside the context system.
// If a context is currently running we can make a direct context-switch with
// yield(ctx), otherwise notify(ctx) enqueues the context.
if(current)
ircd::ctx::yield(ctx);
else
ircd::ctx::notify(ctx);
ircd::ctx::notify(ctx);
}
/// The number of contexts waiting in the queue.