projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
threads: add parent info + get_parent() method
[cdsspec-compiler.git]
/
threads.h
diff --git
a/threads.h
b/threads.h
index 38eac0a9cba43bc4107ee02f02eaaf4763b9595a..345f42077a2372510d5922cd31d26420ed274cd7 100644
(file)
--- a/
threads.h
+++ b/
threads.h
@@
-31,8
+31,10
@@
public:
void set_state(thread_state s) { state = s; }
thread_id_t get_id();
thrd_t get_thrd_t() { return *user_thread; }
+ Thread * get_parent() { return parent; }
private:
int create_context();
+ Thread *parent;
void (*start_routine)();
void *arg;