Ignore:
Timestamp:
Jun 23, 2017, 10:12:04 AM (4 years ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
aaron-thesis, arm-eh, cleanup-dtors, deferred_resn, demangler, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, resolv-new, with_gc
Children:
d43cd01
Parents:
aa3d77b
Message:

preemption works for threads

File:
1 edited

Legend:

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

    raa3d77b r1c273d0  
    3131      struct spinlock {
    3232            volatile int lock;
     33            #ifdef __CFA_DEBUG__
     34                  const char * prev;
     35            #endif
    3336      };
    3437
     
    8386            struct __thread_queue_t entry_queue;      // queue of threads that are blocked waiting for the monitor
    8487            struct __condition_stack_t signal_stack;  // stack of conditions to run next once we exit the monitor
    85             struct monitor_desc * stack_owner;        // if bulk acquiring was used we need to synchronize signals with an other monitor
    8688            unsigned int recursion;                   // monitor routines can be called recursively, we need to keep track of that
    8789      };
Note: See TracChangeset for help on using the changeset viewer.