notifySystemTaskRunner wakes the runner without blocking. If a wakeup is already pending it is a no-op, which is fine since one pass drains all work.
()
| 114 | // notifySystemTaskRunner wakes the runner without blocking. If a wakeup is |
| 115 | // already pending it is a no-op, which is fine since one pass drains all work. |
| 116 | func notifySystemTaskRunner() { |
| 117 | select { |
| 118 | case systemTaskWakeup <- struct{}{}: |
| 119 | default: |
| 120 | } |
| 121 | } |
| 122 | |
| 123 | func StartSystemTaskRunner() { |
| 124 | systemTaskRunnerOnce.Do(func() { |
no outgoing calls
no test coverage detected