Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
reimplement the parallel contextes with C++11 w/o xbt_os_thread_set_specific()
[simgrid.git] / src / kernel / context / ContextBoost.hpp
index 1a9ae4e..899de64 100644 (file)
@@ -98,7 +98,7 @@ private:
   static simgrid::xbt::Parmap<smx_actor_t>* parmap_;
   static std::vector<ParallelBoostContext*> workers_context_;
   static std::atomic<uintptr_t> threads_working_;
-  static xbt_os_thread_key_t worker_id_key_;
+  static thread_local uintptr_t worker_id_;
 };
 #endif