From 181f4b7164dad0d7301ebdb7dd94e17124bbd2cb Mon Sep 17 00:00:00 2001 From: Justin Ethier Date: Mon, 25 Jan 2021 21:47:25 -0500 Subject: [PATCH] Sync --- docs/api/srfi/18.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/docs/api/srfi/18.md b/docs/api/srfi/18.md index 994b1664..9a44ec52 100644 --- a/docs/api/srfi/18.md +++ b/docs/api/srfi/18.md @@ -11,6 +11,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) @@ -45,6 +47,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))