Ignore:
Timestamp:
Jun 12, 2020, 1:49:17 PM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
Children:
cb196f2
Parents:
b388ee81
Message:

Changed scheduling API to adapt to non-Processors scheduling threads.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/concurrency/kernel.hfa

    rb388ee81 r9b1dcc2  
    4747extern struct cluster * mainCluster;
    4848
    49 // Processor
     49// Processor id, required for scheduling threads
     50struct __processor_id_t {
     51        unsigned id;
     52};
     53
    5054coroutine processorCtx_t {
    5155        struct processor * proc;
     
    5458// Wrapper around kernel threads
    5559struct processor {
     60        inline __processor_id_t;
     61
    5662        // Main state
    5763        // Coroutine ctx who does keeps the state of the processor
     
    6066        // Cluster from which to get threads
    6167        struct cluster * cltr;
    62         unsigned int id;
    6368
    6469        // Name of the processor
Note: See TracChangeset for help on using the changeset viewer.