From 9edff32bb71763884949f1b397d03d35376b30d9 Mon Sep 17 00:00:00 2001 From: Slava Pestov Date: Thu, 17 Apr 2008 05:17:30 -0500 Subject: [PATCH] Update docs --- core/threads/threads-docs.factor | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/threads/threads-docs.factor b/core/threads/threads-docs.factor index a2c50346df..3f9ff54ac8 100755 --- a/core/threads/threads-docs.factor +++ b/core/threads/threads-docs.factor @@ -26,7 +26,7 @@ ARTICLE: "threads-yield" "Yielding and suspending threads" { $subsection resume } { $subsection resume-with } ; -ARTICLE: "thread-state" "Thread-local state" +ARTICLE: "thread-state" "Thread-local state and variables" "Threads form a class of objects:" { $subsection thread } "The current thread:" @@ -36,6 +36,8 @@ ARTICLE: "thread-state" "Thread-local state" { $subsection tget } { $subsection tset } { $subsection tchange } +"Each thread has its own independent set of thread-local variables and newly-spawned threads begin with an empty set." +$nl "Global hashtable of all threads, keyed by " { $link thread-id } ":" { $subsection threads } "Threads have an identity independent of continuations. If a continuation is refied in one thread and then resumed in another thread, the code running in that continuation will observe a change in the value output by " { $link self } "." ;