caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* C-interface: caml_enter/leave_blocking_section
@ 2006-01-16 15:33 Bauer, Christoph
  2006-01-16 15:59 ` [Caml-list] " Francois Rouaix
  2006-01-16 16:39 ` Daniel Bünzli
  0 siblings, 2 replies; 3+ messages in thread
From: Bauer, Christoph @ 2006-01-16 15:33 UTC (permalink / raw)
  To: caml-list

Hi,

when do I have to call the functions 
   caml_enter_blocking_section ()
and
   caml_leave_blocking_section ()
in my C-stub code?

Thanks,

Christoph Bauer
Dipl. Inf.

LMS Deutschland GmbH
Luxemburgerstr. 7
D-67657 Kaiserslautern

T +49 631 303 22 152

mailto:Christoph.Bauer@lms-gmbh.de
http://www.lmsintl.com 


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] C-interface: caml_enter/leave_blocking_section
  2006-01-16 15:33 C-interface: caml_enter/leave_blocking_section Bauer, Christoph
@ 2006-01-16 15:59 ` Francois Rouaix
  2006-01-16 16:39 ` Daniel Bünzli
  1 sibling, 0 replies; 3+ messages in thread
From: Francois Rouaix @ 2006-01-16 15:59 UTC (permalink / raw)
  To: Bauer, Christoph; +Cc: caml-list

When you want to be able to switch threads while in C-code, or handle  
signals.
However, my understanding is that the code in the section must not  
access anything in the Caml heap.

On Jan 16, 2006, at 7:33 AM, Bauer, Christoph wrote:

> Hi,
>
> when do I have to call the functions
>    caml_enter_blocking_section ()
> and
>    caml_leave_blocking_section ()
> in my C-stub code?
>
> Thanks,
>
> Christoph Bauer
> Dipl. Inf.
>
> LMS Deutschland GmbH
> Luxemburgerstr. 7
> D-67657 Kaiserslautern
>
> T +49 631 303 22 152
>
> mailto:Christoph.Bauer@lms-gmbh.de
> http://www.lmsintl.com
>
> _______________________________________________
> Caml-list mailing list. Subscription management:
> http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
> Archives: http://caml.inria.fr
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Caml-list] C-interface: caml_enter/leave_blocking_section
  2006-01-16 15:33 C-interface: caml_enter/leave_blocking_section Bauer, Christoph
  2006-01-16 15:59 ` [Caml-list] " Francois Rouaix
@ 2006-01-16 16:39 ` Daniel Bünzli
  1 sibling, 0 replies; 3+ messages in thread
From: Daniel Bünzli @ 2006-01-16 16:39 UTC (permalink / raw)
  To: Bauer, Christoph; +Cc: caml-list

It is "documented" here [1].
Best,

Daniel

[1] <http://caml.inria.fr/pub/ml-archives/caml-list/ 
2001/06/58d7a7e8747056c3842e53b4e9454f44.en.html>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-01-16 16:38 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16 15:33 C-interface: caml_enter/leave_blocking_section Bauer, Christoph
2006-01-16 15:59 ` [Caml-list] " Francois Rouaix
2006-01-16 16:39 ` Daniel Bünzli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).