Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

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  Archives: