diff options
Diffstat (limited to 'xmake/core/thread/thread.lua')
| -rw-r--r-- | xmake/core/thread/thread.lua | 20 |
1 files changed, 20 insertions, 0 deletions
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 |
