chicken-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Chicken-users] critical-section not in Chicken 3?


From: Graham Fawcett
Subject: Re: [Chicken-users] critical-section not in Chicken 3?
Date: Tue, 5 Feb 2008 12:52:03 -0500

On Feb 5, 2008 12:30 PM, Elf <address@hidden> wrote:

im pretty sure you need mutexes.  its pretty easy though...

Are you saying this because you know (critical-section) behaviour is no longer available in the Chicken runtime?

Note that (critical-section) is not a mutex-synchronizing form: it suspends timer interrupts until the body is evaluated (i.e. you are guaranteed that no other threads are executing during the evaluation of the body).
 
(define-macro (protect-section ml . body) 
[snip]


I'd recommend using the excellent (synch) egg rather than writing a custom mutex-handler.

Best,
Graham


reply via email to

[Prev in Thread] Current Thread [Next in Thread]