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:
parent
045a944911
commit
10d59dec9a
1 changed files with 1 additions and 8 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue