[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Chicken-users] critical-section not in Chicken 3?
From: |
Elf |
Subject: |
Re: [Chicken-users] critical-section not in Chicken 3? |
Date: |
Tue, 5 Feb 2008 20:22:01 -0800 (PST) |
On Tue, 5 Feb 2008, Graham Fawcett wrote:
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?
yes, im aware of it, and yes, this is how ive coped with it.
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).
see above. since the disable-timer-interrupts declares arent there anymore,
ive faked it with mutex sections.
(define-macro (protect-section ml . body)
[snip]
I'd recommend using the excellent (synch) egg rather than writing a custom
mutex-handler.
eh, its a very small number of lines and it doesnt have dependencies.
-elf
Best,
Graham
- [Chicken-users] critical-section not in Chicken 3?, Graham Fawcett, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Elf, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Graham Fawcett, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Kon Lovett, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Graham Fawcett, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, felix winkelmann, 2008/02/06
- Re: [Chicken-users] critical-section not in Chicken 3?, Ivan Raikov, 2008/02/06
- Re: [Chicken-users] critical-section not in Chicken 3?, Elf, 2008/02/06
- Re: [Chicken-users] critical-section not in Chicken 3?, Tobia Conforto, 2008/02/09
- Re: [Chicken-users] critical-section not in Chicken 3?, Elf, 2008/02/11
- Re: [Chicken-users] critical-section not in Chicken 3?,
Elf <=
- Re: [Chicken-users] critical-section not in Chicken 3?, Kon Lovett, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Elf, 2008/02/05
- Re: [Chicken-users] critical-section not in Chicken 3?, Kon Lovett, 2008/02/05