From: Gabriel Corona Date: Mon, 11 Jan 2016 16:23:44 +0000 (+0100) Subject: [simix] Fix unitialized thread_ in ThreadContext X-Git-Tag: v3_13~1282 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/54f2eb06fc9234cde1fba6d9ba2f32bda3f59a26 [simix] Fix unitialized thread_ in ThreadContext --- diff --git a/src/simix/ThreadContext.hpp b/src/simix/ThreadContext.hpp index f0655b1161..d706a339b1 100644 --- a/src/simix/ThreadContext.hpp +++ b/src/simix/ThreadContext.hpp @@ -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); };