Thread
thread — API Reference
Section titled “thread — API Reference”Import:
std/thread.axs
Public Functions (6)
Section titled “Public Functions (6)”| Function | Signature | Return Type |
|---|---|---|
spawn | (fn: (ptr void), arg: (ptr void)) | i64 |
join | (handle: i64) | void |
mutex | () | i64 |
lock | (mtx: i64) | void |
unlock | (mtx: i64) | void |
mutex_free | (mtx: i64) | void |
Signatures
Section titled “Signatures”spawn(fn: (ptr void), arg: (ptr void)) → i64join(handle: i64) → voidmutex() → i64lock(mtx: i64) → voidunlock(mtx: i64) → voidmutex_free(mtx: i64) → voidFFI Extern Declarations (6)
Section titled “FFI Extern Declarations (6)”These are private C/system function bindings used internally by the module.
| Symbol | Parameters | Return Type |
|---|---|---|
rt_thread_spawn | (ptr void), (ptr void) | i64 |
rt_thread_join | i64 | void |
rt_mutex_new | (none) | i64 |
rt_mutex_lock | i64 | void |
rt_mutex_unlock | i64 | void |
rt_mutex_free | i64 | void |
Auto-generated from std/thread.axs by scripts/gen_docs.sh