diff options
Diffstat (limited to 'library/lullaby/thread.lua')
| -rw-r--r-- | library/lullaby/thread.lua | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/library/lullaby/thread.lua b/library/lullaby/thread.lua index 6015a0b..7a1888c 100644 --- a/library/lullaby/thread.lua +++ b/library/lullaby/thread.lua @@ -16,11 +16,16 @@ function async.await(T) end ---@return nil function async.clean(T) end ----stops the thread +---stops the thread, may be unavaliable on some systems (android) and will call async:kill instead ---@param T async-table ---@return nil function async.close(T) end +---stops the thread forcefully, may cause problems, likely not thread-safe +---@param T async-table +---@return nil +function async.kill(T) end + ---contains data for the thread ---@deprecated ---@type lightuserdata @@ -56,16 +61,6 @@ function buffer.mod(T, fun) end ---@return buffer-table function thread.buffer(value) end ----locks any thread reaching this lock id until a corresponding unlock is met ----@param tid integer ----@return nil -function thread.lock(tid) end - ----unlocks a lock id ----@param tid integer ----@return nil -function thread.unlock(tid) end - ---@deprecated function thread.testcopy() end |
