Re: X resource settings

From: Erick Gallesio <>
Date: Thu, 20 Oct 1994 16:19:07 +0000

> When is it necessary to lock datastructures while writing extensions?
> The hash-table extension, for example, doesn't protect even in
> HASH-TABLE-MAP, which would cons massively for a large table. Is this
> an oversight?

No you dont have to lock memory when you write an extension. The GC scans
the C stack and call gc_mark on each SCM objet which is in it. The only thing
you have to do is to write a C function which call gc_mark on each component
of your structure which is of type SCM.

Everything should be more clear with a true documention on this subject (it
will be in the 2.2 release)
                -- Erick
Received on Thu Oct 20 1994 - 16:19:08 CET

This archive was generated by hypermail 2.3.0 : Mon Jul 21 2014 - 19:38:59 CEST