- File:
-
- 1 edited
-
libcfa/src/concurrency/cofor.hfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/cofor.hfa
r6b33e89 r0da9475 33 33 34 34 void main( cofor_runner & this ) with(this) { 35 while ( ! done || ! isEmpty( items )) {35 while ( !done || !items`isEmpty ) { 36 36 lock( mutex_lock ); 37 runner_node * node = & remove_first( items );37 runner_node * node = &try_pop_front( 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.