summaryrefslogtreecommitdiff
path: root/xmake/core/base/poller.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/poller.lua')
-rw-r--r--xmake/core/base/poller.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/xmake/core/base/poller.lua b/xmake/core/base/poller.lua
index 222081ae7..48e22e6ab 100644
--- a/xmake/core/base/poller.lua
+++ b/xmake/core/base/poller.lua
@@ -112,6 +112,14 @@ function poller:_remove_sock(sock)
return true
end
+-- support events?
+function poller:support(otype, events)
+ if otype == poller.OT_SOCK then
+ return io.poller_support(events)
+ end
+ return false, string.format("invalid poller object type(%d)!", otype)
+end
+
-- insert object events to poller
function poller:insert(otype, obj, events, udata)
if otype == poller.OT_SOCK then