NO

Author Topic: thread local variables  (Read 2042 times)

tormoz

  • Guest
thread local variables
« 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.

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 1974
    • http://www.smorgasbordet.com
thread local variables
« Reply #1 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.
/Pelle