summaryrefslogtreecommitdiff
path: root/libguile/modules.c
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2011-02-10 21:19:33 +0100
committerAndy Wingo <wingo@pobox.com>2011-02-10 23:16:51 +0100
commite8065fe452208b82cd36f9437d55760d132fde32 (patch)
treea35feb000702e592a63191beab52c54687ee3c8d /libguile/modules.c
parent4b69f6ad26dc35681efc13aee14febf9338e0cce (diff)
downloadguile-e8065fe452208b82cd36f9437d55760d132fde32.tar.gz
comment on scm_pre_modules_obarray re threadsafety
* libguile/modules.c (scm_pre_modules_obarray): Add comment to the effect that this global variable does not need a lock around it.
Diffstat (limited to 'libguile/modules.c')
-rw-r--r--libguile/modules.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libguile/modules.c b/libguile/modules.c
index c4e08e532..40f9c84b1 100644
--- a/libguile/modules.c
+++ b/libguile/modules.c
@@ -326,6 +326,8 @@ resolve_duplicate_binding (SCM module, SCM sym,
return result;
}
+/* No lock is needed for access to this variable, as there are no
+ threads before modules are booted. */
SCM scm_pre_modules_obarray;
/* Lookup SYM as an imported variable of MODULE. */