From 3fa63c937ef4b442d120bc5ba86e9b4eb29b009c Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 16 Apr 2025 00:44:46 +0800 Subject: add thread module stub --- xmake/core/thread/thread.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'xmake/core/thread/thread.lua') diff --git a/xmake/core/thread/thread.lua b/xmake/core/thread/thread.lua index e4f82374f..3c8170f69 100644 --- a/xmake/core/thread/thread.lua +++ b/xmake/core/thread/thread.lua @@ -80,6 +80,22 @@ function _instance:is_dead() return self:status() == thread.STATUS_DEAD end +-- start thread +function _instance:start(instance) +end + +-- suspend thread +function _instance:suspend(instance) +end + +-- resume thread +function _instance:resume(instance) +end + +-- wait thread +function _instance:wait(instance, timeout) +end + -- tostring(thread) function _instance:__tostring() local status_strs = self._STATUS_STRS @@ -122,6 +138,10 @@ function thread.new(callback, opt) end end +-- get the running thread +function thread.running() +end + -- return module return thread -- cgit v1.3.1