Ignore:
Timestamp:
Feb 9, 2017, 4:51:40 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:
8d4f7fe
Parents:
84e2523
Message:

removed pthread_spinlock_t and fixed race condition in yield

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/libcfa/concurrency/kernel

    r84e2523 r8fcbb4c  
    3030struct cluster {
    3131        simple_thread_list ready_queue;
    32         pthread_spinlock_t lock;
     32        // pthread_spinlock_t lock;
    3333};
    3434
     
    3838//-----------------------------------------------------------------------------
    3939// Processor
     40enum ProcessorAction {
     41        Reschedule,
     42        NoAction
     43};
     44
    4045struct processor {
    41         struct processorCtx_t * ctx;
     46        struct processorCtx_t * runner;
    4247        cluster * cltr;
    4348        coroutine * current_coroutine;
     
    4651        simple_lock lock;
    4752        volatile bool terminated;
     53        ProcessorAction thread_action;
    4854};
    4955
Note: See TracChangeset for help on using the changeset viewer.