summaryrefslogtreecommitdiff
path: root/xmake/core/base/pipe.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2025-08-29 22:34:01 +0800
committerruki <[email protected]>2025-08-29 22:34:01 +0800
commit86c2ecefd6857a132308ef232763c9408c6d8644 (patch)
tree943ee4f7c9a871a1d99ea59cc775e8f8906e1354 /xmake/core/base/pipe.lua
parent1356d1dcd71ebad8611d74a9b11acc063b991369 (diff)
support to schedule thread and coroutine
Diffstat (limited to 'xmake/core/base/pipe.lua')
-rw-r--r--xmake/core/base/pipe.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/xmake/core/base/pipe.lua b/xmake/core/base/pipe.lua
index 48d36df9e..4b122ed9e 100644
--- a/xmake/core/base/pipe.lua
+++ b/xmake/core/base/pipe.lua
@@ -285,6 +285,11 @@ function _instance:__gc()
end
end
+-- new a pipe
+function pipe.new(cdata, name)
+ return _instance.new(cdata, name)
+end
+
-- open a named pipe file
--
-- 1. named pipe (server-side):