- File:
-
- 1 edited
-
libcfa/src/concurrency/ready_queue.cfa (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/ready_queue.cfa
r46bbcaf r0fb3ee5 201 201 uint_fast32_t ready_mutate_lock( void ) with(*__scheduler_lock) { 202 202 /* paranoid */ verify( ! __preemption_enabled() ); 203 /* paranoid */ verify( ! kernelTLS().sched_lock ); 203 204 204 205 // Step 1 : lock global lock … … 206 207 // to simply lock their own lock and enter. 207 208 __atomic_acquire( &write_lock ); 208 209 // Make sure we won't deadlock ourself210 // Checking before acquiring the writer lock isn't safe211 // because someone else could have locked us.212 /* paranoid */ verify( ! kernelTLS().sched_lock );213 209 214 210 // Step 2 : lock per-proc lock
Note:
See TracChangeset
for help on using the changeset viewer.