diff options
Diffstat (limited to 'src/lua')
-rw-r--r-- | src/lua/llthreads2/ex.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/lua/llthreads2/ex.lua b/src/lua/llthreads2/ex.lua index 06af3a5..77f8d5e 100644 --- a/src/lua/llthreads2/ex.lua +++ b/src/lua/llthreads2/ex.lua | |||
@@ -123,6 +123,24 @@ function thread_mt:alive() | |||
123 | return self.thread:alive() | 123 | return self.thread:alive() |
124 | end | 124 | end |
125 | 125 | ||
126 | --- Check if thread was started. | ||
127 | -- | ||
128 | function thread_mt:started() | ||
129 | return self.thread:started() | ||
130 | end | ||
131 | |||
132 | --- Check if thread is detached. | ||
133 | -- This function returns valid value only for started thread. | ||
134 | function thread_mt:detached() | ||
135 | return self.thread:detached() | ||
136 | end | ||
137 | |||
138 | --- Check if thread is joinable. | ||
139 | -- This function returns valid value only for started thread. | ||
140 | function thread_mt:joinable() | ||
141 | return self.thread:joinable() | ||
142 | end | ||
143 | |||
126 | end | 144 | end |
127 | ------------------------------------------------------------------------------- | 145 | ------------------------------------------------------------------------------- |
128 | 146 | ||