Changeset dddb3dd0 for libcfa/src/concurrency/kernel.hfa
- Timestamp:
- Mar 2, 2021, 1:58:12 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 2cd784a
- Parents:
- 6047b00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.hfa
r6047b00 rdddb3dd0 28 28 } 29 29 30 //-----------------------------------------------------------------------------31 // Underlying Locks32 30 #ifdef __CFA_WITH_VERIFY__ 33 31 extern bool __cfaabi_dbg_in_kernel(); 34 32 #endif 35 36 struct __bin_sem_t {37 pthread_mutex_t lock;38 pthread_cond_t cond;39 int val;40 };41 33 42 34 //----------------------------------------------------------------------------- … … 52 44 void ?{}(io_context_params & this); 53 45 54 struct io_context {55 $io_context * ctx;56 cluster * cltr;57 };58 void ?{}(io_context & this, struct cluster & cl);59 void ^?{}(io_context & this);60 61 46 //----------------------------------------------------------------------------- 62 47 // Processor … … 98 83 99 84 struct { 100 $io_context * volatile ctx; 101 volatile bool lock; 85 $io_context * ctx; 86 bool pending; 87 bool dirty; 102 88 } io; 103 89 … … 110 96 111 97 // Idle lock (kernel semaphore) 112 __bin_sem_t idle;98 int idle; 113 99 114 100 // Termination synchronisation (user semaphore)
Note: See TracChangeset
for help on using the changeset viewer.