This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
api:thread [2017/09/07 18:04] payonel [Thread Handle API] |
api:thread [2017/09/07 19:25] payonel [Thread API] |
||
---|---|---|---|
Line 114: | Line 114: | ||
``` | ``` | ||
- | * Please note that threads resume order is not specified | + | Please note that threads resume order is not specified and this example may print "D" before it prints "Main program end" |
+ | |||
+ | - `thread.current(): table` | ||
+ | |||
+ | Returns the current thread `t` object. The init process does not represent a thread and nothing is returned from this method if called from the init process and not inside any thread. | ||
+ | |||
===== Thread Handle API ===== | ===== Thread Handle API ===== |