From kde-devel Fri Aug 25 10:56:53 2006 From: =?iso-8859-1?q?Beno=EEt_Jacob?= Date: Fri, 25 Aug 2006 10:56:53 +0000 To: kde-devel Subject: c++ keyword __thread Message-Id: <200608251256.53776.jacob () math ! jussieu ! fr> X-MARC-Message: https://marc.info/?l=kde-devel&m=115650336424032 Hi, For Eigen, I've written a thread-safe buffer manager: http://websvn.kde.org/*checkout*/trunk/kdesupport/eigen/buffermanager.h?content-type=text%2Fplain&rev=576962 Now I've just found out that there is a new c++ keyword, __thread, that seems to do thread-local storage, which is almost the same thing as my buffer manager. I'd like to know if I should use this keyword instead of my own code: - is it standard enough? - what is the standard practice in KDE? - if I should use that keyword, should I make a #define to be portable to compilers where __thread has got a different name (like MSVC) ? - won't someone drop a tear on my useless effort? Benoit >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<