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
[simix] Fix unitialized thread_ in ThreadContext
[simgrid.git]
/
src
/
simix
/
ThreadContext.hpp
diff --git
a/src/simix/ThreadContext.hpp
b/src/simix/ThreadContext.hpp
index
f0655b1
..
d706a33
100644
(file)
--- a/
src/simix/ThreadContext.hpp
+++ b/
src/simix/ThreadContext.hpp
@@
-29,11
+29,11
@@
public:
void suspend() override;
private:
/** A portable thread */
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 */
/** Semaphore used to schedule/yield the process */
- xbt_os_sem_t begin_;
+ xbt_os_sem_t begin_
= nullptr
;
/** Semaphore used to schedule/unschedule */
/** Semaphore used to schedule/unschedule */
- xbt_os_sem_t end_;
+ xbt_os_sem_t end_
= nullptr
;
private:
static void* wrapper(void *param);
};
private:
static void* wrapper(void *param);
};