- Timestamp:
- Sep 19, 2023, 10:29:16 AM (11 months ago)
- Branches:
- master
- Children:
- 7350330f, deda7e6
- Parents:
- b244fa8
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/concurrency/cofor.cfa
rb244fa8 r5a1ae14 2 2 3 3 long total = 0; 4 void inner_loop( long i ) { __atomic_fetch_add( &total, i, __ATOMIC_SEQ_CST ); }5 4 void add_num( void * arg ) { __atomic_fetch_add( &total, (long)arg, __ATOMIC_SEQ_CST ); } 6 5
Note: See TracChangeset
for help on using the changeset viewer.