Ignore:
Timestamp:
Jan 19, 2017, 2:42:49 PM (7 years ago)
Author:
Thierry Delisle <tdelisle@…>
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
Message:

First prototype of kernel with proper startup and shutdown, not yet implemented for i386

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/coroutines.c

    r2175062 reb2e723  
    3636static size_t pageSize = 0;                             // architecture pagesize HACK, should go in proper runtime singleton
    3737
    38 //Extra private desctructor for the main
    39 //FIXME the main should not actually allocate a stack
    40 //Since the main is never resumed the extra stack does not cause
    41 //any problem but it is wasted memory
    42 void ?{}(coStack_t* this, size_t size);
    43 void ?{}(coroutine* this, size_t size);
    44 
    45 //Main coroutine
    46 //FIXME do not construct a stack for the main
    47 coroutine main_coroutine = { 1000 };
    48 
    4938//Current coroutine
    5039//Will need to be in TLS when multi-threading is added
    51 coroutine* current_coroutine = &main_coroutine;
     40coroutine* current_coroutine;
    5241
    5342//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.