mirror of
https://github.com/matrix-construct/construct
synced 2024-11-16 23:10: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,13 +248,6 @@ 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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue