- File:
-
- 1 edited
-
libcfa/src/concurrency/kernel/cluster.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel/cluster.cfa
r15c93d8 r31c967b 483 483 484 484 // We add a boat-load of assertions here because the anchor code is very fragile 485 /* paranoid */ _Static_assert( offsetof( thread$, rdy_link ) == nested_offsetof(__intrusive_lane_t, l.anchor) );486 /* paranoid */ verify( offsetof( thread$, rdy_link ) == nested_offsetof(__intrusive_lane_t, l.anchor) );487 /* paranoid */ verify( ((uintptr_t)( mock_head(this) ) + offsetof( thread$, rdy_link )) == (uintptr_t)(&this.l.anchor) );488 /* paranoid */ verify( &mock_head(this)-> rdy_link.next == &this.l.anchor.next );489 /* paranoid */ verify( &mock_head(this)-> rdy_link.ts == &this.l.anchor.ts );490 /* paranoid */ verify( mock_head(this)-> rdy_link.next == 0p );491 /* paranoid */ verify( mock_head(this)-> rdy_link.ts == MAX );485 /* paranoid */ _Static_assert( offsetof( thread$, link ) == nested_offsetof(__intrusive_lane_t, l.anchor) ); 486 /* paranoid */ verify( offsetof( thread$, link ) == nested_offsetof(__intrusive_lane_t, l.anchor) ); 487 /* paranoid */ verify( ((uintptr_t)( mock_head(this) ) + offsetof( thread$, link )) == (uintptr_t)(&this.l.anchor) ); 488 /* paranoid */ verify( &mock_head(this)->link.next == &this.l.anchor.next ); 489 /* paranoid */ verify( &mock_head(this)->link.ts == &this.l.anchor.ts ); 490 /* paranoid */ verify( mock_head(this)->link.next == 0p ); 491 /* paranoid */ verify( mock_head(this)->link.ts == MAX ); 492 492 /* paranoid */ verify( mock_head(this) == this.l.prev ); 493 493 /* paranoid */ verify( __alignof__(__intrusive_lane_t) == 64 );
Note:
See TracChangeset
for help on using the changeset viewer.