X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/c68caf0f27b0fdde9df0a39857e5a162fc196d85..68789b70e7a97bf748e0829eceeb4e2aca2cc490:/src/kernel/context/ContextThread.hpp diff --git a/src/kernel/context/ContextThread.hpp b/src/kernel/context/ContextThread.hpp index 1f9d06e773..0dfc83b44f 100644 --- a/src/kernel/context/ContextThread.hpp +++ b/src/kernel/context/ContextThread.hpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2009-2018. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2009-2019. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -13,6 +13,8 @@ #include "src/xbt/OsSemaphore.hpp" #include "xbt/xbt_os_thread.h" +#include + namespace simgrid { namespace kernel { namespace context { @@ -32,7 +34,7 @@ public: private: /** A portable thread */ - xbt_os_thread_t thread_ = nullptr; + std::thread* thread_ = nullptr; /** Semaphore used to schedule/yield the process (not needed when the maestro is in main, but harmless then) */ xbt::OsSemaphore begin_{0}; /** Semaphore used to schedule/unschedule (not needed when the maestro is in main, but harmless then) */