Pelles C forum

Pelles C => Feature requests => Topic started by: tormoz on May 16, 2006, 08:51:24 PM

Title: thread local variables
Post by: tormoz on May 16, 2006, 08:51:24 PM
It will be good to have thread local variables like __declspec(thread) in VS C compiler. I've not found it in Pelles C.
Title: thread local variables
Post by: Pelle on May 16, 2006, 09:11:23 PM
Not sure it's a good idea: __declspec(thread) can fail in some cases, but TlsAlloc() can not (well, usually not). Using TlsAlloc() should be safer.