mirror of
https://github.com/justinethier/cyclone.git
synced 2025-05-19 05:39:17 +02:00
Document current-thread-data
This commit is contained in:
parent
c31b4295b8
commit
db7a82899b
1 changed files with 14 additions and 0 deletions
|
@ -6,6 +6,8 @@ See the [Multithreading support SRFI documentation](http://srfi.schemers.org/srf
|
|||
|
||||
- [`thread?`](#thread)
|
||||
- [`make-thread`](#make-thread)
|
||||
- [`current-thread`](#current-thread)
|
||||
- [`current-thread-data`](#current-thread-data)
|
||||
- [`thread-name`](#thread-name)
|
||||
- [`thread-specific`](#thread-specific)
|
||||
- [`thread-specific-set!`](#thread-specific-set)
|
||||
|
@ -40,6 +42,18 @@ Determine if the given object is a thread object.
|
|||
|
||||
Create a new thread object.
|
||||
|
||||
# current-thread
|
||||
|
||||
(current-thread)
|
||||
|
||||
Returns the current thread.
|
||||
|
||||
# current-thread-data
|
||||
|
||||
(current-thread-data)
|
||||
|
||||
Returns the `gc_thread_data` instance for the current thread, wrapped in an opaque object. This is useful when using the FFI as many functions in the Cyclone runtime require the `gc_thread_data` data argument.
|
||||
|
||||
# thread-name
|
||||
|
||||
(thread-name t) (vector-ref t 3))
|
||||
|
|
Loading…
Add table
Reference in a new issue