English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] Garbage collection and threads.
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-04-02 (19:46)
From: David Brown <caml-list@d...>
Subject: [Caml-list] Garbage collection and threads.
I'm writing some bindings to zlib (compression library) and was wondering
how the garbage collector would work with threading.

The zlib library needs two buffers, one to get data from, and one to put
data in.  Is it safe to pass the result of String_val(x) into a C routine?
If I have threads running, could the garbage collector run while my C
routine is running?

Dave Brown
To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr