Changeset 9129a84 for src/libcfa/concurrency/threads
- Timestamp:
- Nov 28, 2016, 4:02:45 PM (8 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
- Children:
- 1f44196
- Parents:
- f773f67
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/libcfa/concurrency/threads ¶
rf773f67 r9129a84 17 17 #define __THREADS_H__ 18 18 19 #include <stdbool.h> 19 20 20 21 struct coroutine { 21 int blarg; 22 coroutine* last; 23 const char* name; 24 bool notHalted; 22 25 }; 26 27 void ?{}(coroutine* this); 23 28 24 29 trait coroutine_t(dtype T) { … … 26 31 }; 27 32 28 forall(dtype T | coroutine_t(T)) 29 void suspend(T* cor); 33 void suspend(void); 30 34 31 35 forall(dtype T | coroutine_t(T))
Note: See TracChangeset
for help on using the changeset viewer.