comment on scm_pre_modules_obarray re threadsafety
authorAndy Wingo <wingo@pobox.com>
Thu, 10 Feb 2011 20:19:33 +0000 (21:19 +0100)
committerAndy Wingo <wingo@pobox.com>
Thu, 10 Feb 2011 22:16:51 +0000 (23:16 +0100)
* libguile/modules.c (scm_pre_modules_obarray): Add comment to the
  effect that this global variable does not need a lock around it.

libguile/modules.c

index c4e08e5..40f9c84 100644 (file)
@@ -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.  */