[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #24867] `define' should be thread-safe
From: |
Linas Vepstas |
Subject: |
[bug #24867] `define' should be thread-safe |
Date: |
Tue, 23 Dec 2008 18:28:47 +0000 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.0.5) Gecko/2008121621 Ubuntu/8.04 (hardy) Firefox/3.0.5 |
Follow-up Comment #5, bug #24867 (project guile):
1) Easier said than done, because:
1a) the mutex needs to be recursive, since sym2var evaluates code in
boot9.scm which can cause sym2var to run again. The core problem is that the
mechanism for specifying recursive mutexes seems to be somewhat OS-dependent
(and possibly some OS'es don't support recursive mutexes??) and so a
portability wrapper might be needed. :-(
1b) There's still a strange deadlock somehow; am debugging.
3) Fine-grained usually means speedy. *if* there was some per-module C
struct, then the mutex could be put in there. (I don't know of any, but I
don't know guile internals). The alternative would be somehow grabbing a lock
in the boot9.scm code, but I don't see how, without making some symbol lookup
(i.e. race).
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?24867>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/