Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/libcfa/concurrency/invoke.h

    r348006f rcc7f4b1  
    3535
    3636      struct simple_thread_list {
    37             struct thread_desc * head;
    38             struct thread_desc ** tail;
     37            struct thread * head;
     38            struct thread ** tail;
    3939      };
    4040
     
    4848      extern "Cforall" {
    4949            void ?{}( struct simple_thread_list * );
    50             void append( struct simple_thread_list *, struct thread_desc * );
    51             struct thread_desc * pop_head( struct simple_thread_list * );
     50            void append( struct simple_thread_list *, struct thread * );
     51            struct thread * pop_head( struct simple_thread_list * );
    5252
    5353            void ?{}(spinlock * this);
     
    7171      enum coroutine_state { Halted, Start, Inactive, Active, Primed };
    7272
    73       struct coroutine_desc {
     73      struct coroutine {
    7474            struct coStack_t stack;
    7575            const char *name;                         // textual name for coroutine/task, initialized by uC++ generated code
    7676            int errno_;                               // copy of global UNIX variable errno
    7777            enum coroutine_state state;       // current execution status for coroutine
    78             struct coroutine_desc *starter;           // first coroutine to resume this one
    79             struct coroutine_desc *last;                      // last coroutine to resume this one
     78            struct coroutine *starter;        // first coroutine to resume this one
     79            struct coroutine *last;                   // last coroutine to resume this one
    8080      };
    8181
    82       struct thread_desc {
    83             struct coroutine_desc c;                 // coroutine body used to store context
     82      struct thread {
     83            struct coroutine c;                 // coroutine body used to store context
    8484            struct signal_once terminated;      // indicate if execuation state is not halted
    85             struct thread_desc * next;               // instrusive link field for threads
     85            struct thread * next;               // instrusive link field for threads
    8686      };
    8787
Note: See TracChangeset for help on using the changeset viewer.