diff options
| author | ruki <[email protected]> | 2019-12-16 22:34:06 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-12-16 09:24:36 +0800 |
| commit | 4ed6741dd366d1e48d30356657bc77d40e0ac2ca (patch) | |
| tree | e070e5be51847df31c5473cb9f3957fc5ea192d8 /xmake/core/base/poller.lua | |
| parent | 77c589d08366ec183f03e54106f0899ec127feb9 (diff) | |
impl scheduler.stop
Diffstat (limited to 'xmake/core/base/poller.lua')
| -rw-r--r-- | xmake/core/base/poller.lua | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/poller.lua b/xmake/core/base/poller.lua index f964ae8bc..8c4085670 100644 --- a/xmake/core/base/poller.lua +++ b/xmake/core/base/poller.lua @@ -120,6 +120,11 @@ function poller:support(otype, events) return false, string.format("invalid poller object type(%d)!", otype) end +-- spank poller to break the wait() and return all triggered events +function poller:spank() + io.poller_spank() +end + -- insert object events to poller function poller:insert(otype, obj, events, udata) if otype == poller.OT_SOCK then |
