Re: [Chicken-users] srfi-18 threads question

2016-09-21 Thread John Cowan
On Wed, Sep 21, 2016 at 4:53 PM, wrote: > ;; Why does the mutation of a simple global in a thread become visible to > the main thread, but the mutation of global parameter does not? > > In general, parameters are designed to be per-thread rather than shared. If they weren't,

[Chicken-users] srfi-18 threads question

2016-09-21 Thread brandon
Hi All, New to this list and srfi-18 threads. I want to make use of parameters in a thread-safe way, but I have run into problems. It seems to me that parameters created in one thread cannot be manipulated in a persistent way from another thread. Here is some example code showing what I mean: