[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 (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_SETCDR (expr, tail);

which is very dubious if a thread switch happens at (*)

 Han-Wen Nienhuys - address@hidden -

reply via email to

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