Changeset 6b33e89 for libcfa/src/concurrency/cofor.hfa
- Timestamp:
- Apr 25, 2025, 7:39:09 AM (5 months ago)
- Branches:
- master
- Children:
- 65bd3c2
- Parents:
- b195498
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/cofor.hfa
rb195498 r6b33e89 33 33 34 34 void main( cofor_runner & this ) with(this) { 35 while ( ! done || !items`isEmpty) {35 while ( ! done || ! isEmpty( items ) ) { 36 36 lock( mutex_lock ); 37 runner_node * node = & try_pop_front( items );37 runner_node * node = &remove_first( items ); 38 38 unlock( mutex_lock ); 39 if ( ! node )39 if ( ! node ) 40 40 continue; 41 41 func( node->value );
Note:
See TracChangeset
for help on using the changeset viewer.