guile-devel
[Top][All Lists]
Advanced

[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





reply via email to

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