projects
/
cdsspec-compiler.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
demote 'system_thread' to just 'system_context'
[cdsspec-compiler.git]
/
threads.h
diff --git
a/threads.h
b/threads.h
index 44e1013768e911c6aaec6aa8564fd2a629b94cc7..490081afe882c41b0bfec641740f43c4e99d90ed 100644
(file)
--- a/
threads.h
+++ b/
threads.h
@@
-22,7
+22,9
@@
public:
Thread(thrd_t *t);
~Thread();
void complete();
Thread(thrd_t *t);
~Thread();
void complete();
- int swap(Thread *t);
+
+ static int swap(ucontext_t *ctxt, Thread *t);
+ static int swap(Thread *t, ucontext_t *ctxt);
thread_state get_state() { return state; }
void set_state(thread_state s) { state = s; }
thread_state get_state() { return state; }
void set_state(thread_state s) { state = s; }