Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make field 'SwappedContext::worker_context_' private.
authorArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Wed, 15 Jan 2020 20:23:10 +0000 (21:23 +0100)
committerArnaud Giersch <arnaud.giersch@univ-fcomte.fr>
Thu, 16 Jan 2020 09:27:49 +0000 (10:27 +0100)
src/kernel/context/ContextSwapped.hpp

index 00d2dba..644245e 100644 (file)
@@ -47,8 +47,6 @@ public:
 
   unsigned char* get_stack();
 
-  static thread_local SwappedContext* worker_context_;
-
 #if HAVE_SANITIZER_ADDRESS_FIBER_SUPPORT
   const void* asan_stack_   = nullptr;
   size_t asan_stack_size_   = 0;
@@ -57,6 +55,8 @@ public:
 #endif
 
 private:
+  static thread_local SwappedContext* worker_context_;
+
   unsigned char* stack_ = nullptr; // the thread stack
   SwappedContextFactory& factory_; // for sequential and parallel run_all()