Changeset e71e94a
- Timestamp:
- Apr 1, 2022, 1:47:47 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, master, pthread-emulation, qualifiedEnum
- Children:
- 5f53cc3
- Parents:
- 1417f6b
- Location:
- libcfa/src/concurrency
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/io/types.hfa
r1417f6b re71e94a 25 25 #include "iofwd.hfa" 26 26 #include "kernel/fwd.hfa" 27 #include "limits.hfa" 27 28 28 29 #if defined(CFA_HAVE_LINUX_IO_URING_H) … … 136 137 137 138 static inline unsigned long long ts($io_context *& this) { 139 const __u32 head = *this->cq.head; 140 const __u32 tail = *this->cq.tail; 141 142 if(head == tail) return MAX; 143 138 144 return this->cq.ts; 139 145 } -
libcfa/src/concurrency/ready_subqueue.hfa
r1417f6b re71e94a 3 3 #define __CFA_NO_SCHED_STATS__ 4 4 5 #include " containers/queueLockFree.hfa"5 #include "limits.hfa" 6 6 7 7 // Intrusives lanes which are used by the relaxed ready queue … … 32 32 /* paranoid */ verify( this.lock ); 33 33 /* paranoid */ verify( node->link.next == 0p ); 34 /* paranoid */ verify( node->link.ts == -1llu);34 /* paranoid */ verify( node->link.ts == MAX ); 35 35 /* paranoid */ verify( this.prev->link.next == 0p ); 36 /* paranoid */ verify( this.prev->link.ts == -1llu);36 /* paranoid */ verify( this.prev->link.ts == MAX ); 37 37 if( this.anchor.next == 0p ) { 38 38 /* paranoid */ verify( this.anchor.next == 0p ); 39 /* paranoid */ verify( this.anchor.ts == -1llu);39 /* paranoid */ verify( this.anchor.ts == MAX ); 40 40 /* paranoid */ verify( this.anchor.ts != 0 ); 41 41 /* paranoid */ verify( this.prev == mock_head( this ) ); 42 42 } else { 43 43 /* paranoid */ verify( this.anchor.next != 0p ); 44 /* paranoid */ verify( this.anchor.ts != -1llu);44 /* paranoid */ verify( this.anchor.ts != MAX ); 45 45 /* paranoid */ verify( this.anchor.ts != 0 ); 46 46 /* paranoid */ verify( this.prev != mock_head( this ) ); … … 62 62 /* paranoid */ verify( this.lock ); 63 63 /* paranoid */ verify( this.anchor.next != 0p ); 64 /* paranoid */ verify( this.anchor.ts != -1llu);64 /* paranoid */ verify( this.anchor.ts != MAX ); 65 65 /* paranoid */ verify( this.anchor.ts != 0 ); 66 66 … … 71 71 bool is_empty = this.anchor.next == 0p; 72 72 node->link.next = 0p; 73 node->link.ts = -1llu;73 node->link.ts = MAX; 74 74 #if !defined(__CFA_NO_STATISTICS__) 75 75 this.cnt--; … … 80 80 81 81 /* paranoid */ verify( node->link.next == 0p ); 82 /* paranoid */ verify( node->link.ts == -1llu);82 /* paranoid */ verify( node->link.ts == MAX ); 83 83 /* paranoid */ verify( node->link.ts != 0 ); 84 84 /* paranoid */ verify( this.anchor.ts != 0 );
Note: See TracChangeset
for help on using the changeset viewer.