Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[simix] Fix unitialized thread_ in ThreadContext
authorGabriel Corona <gabriel.corona@loria.fr>
Mon, 11 Jan 2016 16:23:44 +0000 (17:23 +0100)
committerGabriel Corona <gabriel.corona@loria.fr>
Mon, 11 Jan 2016 16:23:44 +0000 (17:23 +0100)
src/simix/ThreadContext.hpp

index f0655b1..d706a33 100644 (file)
@@ -29,11 +29,11 @@ public:
   void suspend() override;
 private:
   /** A portable thread */
-  xbt_os_thread_t thread_;
+  xbt_os_thread_t thread_ = nullptr;
   /** Semaphore used to schedule/yield the process */
-  xbt_os_sem_t begin_;
+  xbt_os_sem_t begin_ = nullptr;
   /** Semaphore used to schedule/unschedule */
-  xbt_os_sem_t end_;
+  xbt_os_sem_t end_ = nullptr;
 private:
   static void* wrapper(void *param);
 };