diff options
| author | ruki <[email protected]> | 2025-04-16 00:44:46 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-08-28 11:35:53 +0800 |
| commit | 3fa63c937ef4b442d120bc5ba86e9b4eb29b009c (patch) | |
| tree | 98935162c42784aa4ace767daecb8d1fb1847552 /xmake/core/thread/thread.lua | |
| parent | b63b1e9f2635242113724bc8c0f41afbaa15f9ee (diff) | |
add thread module stub
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 |
