Ignore:
Timestamp:
Jan 18, 2017, 6:12:13 PM (8 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:
68e6031
Parents:
7fbe450
Message:

Kernel now supports [0-9] cfa threads on a single core, using round-robin scheduling and no preemption

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/kernel

    r7fbe450 rc84e80a  
    1818#define KERNEL_H
    1919
    20 extern struct thread_h * the_thread;
     20#include <stdbool.h>
    2121
     22struct processor {
     23        struct proc_coroutine * cor;
     24        unsigned int thread_index;
     25        unsigned int thread_count;
     26        struct thread_h * threads[10];
     27        bool terminated;
     28};
     29
     30void ?{}(processor * this);
     31void ^?{}(processor * this);
     32
     33void scheduler_add( struct thread_h * thrd );
     34void scheduler_remove( struct thread_h * thrd );
    2235void kernel_run( void );
    2336
Note: See TracChangeset for help on using the changeset viewer.