[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gensym thread safety
From: |
Kevin Ryde |
Subject: |
gensym thread safety |
Date: |
Wed, 28 Jul 2004 08:58:20 +1000 |
User-agent: |
Gnus/5.110003 (No Gnus v0.3) Emacs/21.3 (gnu/linux) |
The chance of two threads hitting the read+increment at the same time
is obviously small, but a mutex will guarantee it.
* symbols.c (scm_gensym): Use scm_i_misc_mutex around gensym_counter
update, for thread safety.
(gensym_counter): Move into scm_gensym which is its only user.
(scm_init_symbols): No need to explicitly initialize gensym_counter.
symbols.c.gensym.diff
Description: Text document
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- gensym thread safety,
Kevin Ryde <=