[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using define in multiple threads?
From: |
Han-Wen Nienhuys |
Subject: |
Re: Using define in multiple threads? |
Date: |
Mon, 17 Nov 2008 11:18:45 -0200 |
User-agent: |
Thunderbird 2.0.0.16 (X11/20080723) |
Linas Vepstas escreveu:
> Is it "safe" or "legal" to use define in multiple threads?
I guess not. Someone -I forgot who- put in the pthreads without thinking
through the consequences.
Look through eval.c, you´ll see
SCM_SETCAR (expr, SCM_IM_DO);
// *
SCM_SETCDR (expr, tail);
which is very dubious if a thread switch happens at (*)
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen
- Using define in multiple threads?, Linas Vepstas, 2008/11/16
- Re: Using define in multiple threads?,
Han-Wen Nienhuys <=
- Re: Using define in multiple threads?, Ludovic Courtès, 2008/11/17
- Re: Using define in multiple threads?, Andy Wingo, 2008/11/17
- Re: Using define in multiple threads?, Ludovic Courtès, 2008/11/18
- Re: Using define in multiple threads?, Neil Jerram, 2008/11/19
- Re: Using define in multiple threads?, Andy Wingo, 2008/11/19
- Re: Using define in multiple threads?, Ludovic Courtès, 2008/11/20