Changeset 1095ccd for libcfa/src/concurrency/io
- Timestamp:
- Aug 14, 2020, 5:32:32 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- d2b5d2d
- Parents:
- a5bc72e
- Location:
- libcfa/src/concurrency/io
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/setup.cfa
ra5bc72e r1095ccd 388 388 sq.ready[i] = -1ul32; 389 389 } 390 sq.prev_ready = 0; 390 391 } 391 392 else { 392 393 sq.ready_cnt = 0; 393 394 sq.ready = 0p; 395 sq.prev_ready = 0; 394 396 } 395 397 -
libcfa/src/concurrency/io/types.hfa
ra5bc72e r1095ccd 23 23 #include "bits/locks.hfa" 24 24 25 #define LEADER_LOCK25 // #define LEADER_LOCK 26 26 struct __leaderlock_t { 27 27 struct $thread * volatile value; // ($thread) next_leader | (bool:1) is_locked … … 55 55 volatile __u32 * ready; 56 56 __u32 ready_cnt; 57 __u32 prev_ready; 57 58 58 59 #if defined(LEADER_LOCK)
Note: See TracChangeset
for help on using the changeset viewer.