[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
- To: alleg-developers@xxxxxxxxxx
- Subject: Re: [AD] NewAPI Poll
- From: Thomas Fjellstrom <tfjellstrom@xxxxxxxxxx>
- Date: Wed, 22 Feb 2006 05:11:34 -0700
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:to:subject:date:user-agent:references:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=QVHoGgSZGy2LrkmJduDROIlql1cE4BmRVmUkzAxQJutKUgmFpixUJ/V1gYrINgsearhwo5thSKD3e2RLJUVxkfpFqcYCE8oRDbnMHJ/Zb2VCYByXMm7w1tjZQLgx6LkraR9davCDgGrZpuBJa2NX+xjd7y0QnAyEBwUZEX6fXgk=
On Wednesday 22 February 2006 4:45 am, Karthik Kumar wrote:
> On 2/22/06, Chris <chris.kcat@xxxxxxxxxx> wrote:
> > On Tuesday 21 February 2006 06:04, Elias Pschernig wrote:
> > > If it is a thread-local variable, it can't possibly be different. But
> > > yes, it's something to think about. If we can't use thread-local
> > > variables, but a real global, then changing the render target in other
> > > threads should probably be avoided.
> >
> > C99 defines the storage specifier __thread for exactly this.
> > -
> > __thread AL_CONTEXT *active_context;
>
> _thread looks good ... But, How many C99 compliant compilers are out there?
> Unless, you'd want Allegro to be compiled ONLY in gcc?
You really need to finish reading a message before you reply to it.
> --
> Karthik
> http://guilt.bafsoft.net
--
Thomas Fjellstrom
tfjellstrom@xxxxxxxxxx