Changeset eb2e723 for src/libcfa/concurrency/coroutines.c
- Timestamp:
- Jan 19, 2017, 2:42:49 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:
- 35dd180f
- Parents:
- 2175062
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/libcfa/concurrency/coroutines.c
r2175062 reb2e723 36 36 static size_t pageSize = 0; // architecture pagesize HACK, should go in proper runtime singleton 37 37 38 //Extra private desctructor for the main39 //FIXME the main should not actually allocate a stack40 //Since the main is never resumed the extra stack does not cause41 //any problem but it is wasted memory42 void ?{}(coStack_t* this, size_t size);43 void ?{}(coroutine* this, size_t size);44 45 //Main coroutine46 //FIXME do not construct a stack for the main47 coroutine main_coroutine = { 1000 };48 49 38 //Current coroutine 50 39 //Will need to be in TLS when multi-threading is added 51 coroutine* current_coroutine = &main_coroutine;40 coroutine* current_coroutine; 52 41 53 42 //-----------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.