A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ctx: move some bits to a private header and reduce the exposure of src/internal_config.h
[simgrid.git]
/
src
/
kernel
/
context
/
ContextThread.cpp
diff --git
a/src/kernel/context/ContextThread.cpp
b/src/kernel/context/ContextThread.cpp
index
9949353
..
2037673
100644
(file)
--- a/
src/kernel/context/ContextThread.cpp
+++ b/
src/kernel/context/ContextThread.cpp
@@
-75,9
+75,10
@@
ThreadContext::ThreadContext(std::function<void()> code, void_pfn_smxprocess_t c
ThreadContext::~ThreadContext()
{
ThreadContext::~ThreadContext()
{
- if (this->thread_)
/* If there is a thread (maestro don't have any), wait for its termination
*/
+ if (this->thread_)
{ /* Maestro don't have any thread
*/
thread_->join();
thread_->join();
- delete thread_;
+ delete thread_;
+ }
}
void *ThreadContext::wrapper(void *param)
}
void *ThreadContext::wrapper(void *param)