- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/ready_queue.cfa
r62502cc4 r343d10e 150 150 // queues or removing them. 151 151 uint_fast32_t ready_mutate_lock( void ) with(*__scheduler_lock) { 152 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );153 154 152 // Step 1 : lock global lock 155 153 // It is needed to avoid processors that register mid Critical-Section … … 166 164 } 167 165 168 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );169 166 return s; 170 167 } 171 168 172 169 void ready_mutate_unlock( uint_fast32_t last_s ) with(*__scheduler_lock) { 173 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );174 175 170 // Step 1 : release local locks 176 171 // This must be done while the global lock is held to avoid … … 187 182 /*paranoid*/ assert(true == lock); 188 183 __atomic_store_n(&lock, (bool)false, __ATOMIC_RELEASE); 189 190 /* paranoid */ verify( ! kernelTLS.preemption_state.enabled );191 184 } 192 185
Note:
See TracChangeset
for help on using the changeset viewer.