File tree Expand file tree Collapse file tree 1 file changed +11
-0
lines changed
Expand file tree Collapse file tree 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -103,6 +103,17 @@ void tasklet_wakeup(tl)
103103 least once. The tasklet will run on its assigned thread, or on any
104104 thread if its TID is negative.
105105
106+ struct list *tasklet_wakeup_after(head, tl)
107+ Schedule tasklet <tl> to run immediately the current one if <head> is
108+ NULL, or after the last queued one if <head> is non-null. The new head
109+ is returned, to be passed to the next call. The purpose here is to
110+ permit instant wakeups of resumed tasklets that still preserve
111+ ordering between them. A typical use case is for a mux' I/O handler to
112+ instantly wake up a series of urgent streams before continuing with
113+ already queued tasklets. This may induce extra latencies for pending
114+ jobs and must only be used extremely carefully when it's certain that
115+ the processing will benefit from using fresh data from the L1 cache.
116+
106117void tasklet_wakeup_on(tl, thr)
107118 Make sure that tasklet <tl> will wake up on thread <thr>, that is, will
108119 execute at least once. The designated thread may only differ from the
You can’t perform that action at this time.
0 commit comments