Changeset 9df6059 for libcfa/src/executor.cfa
- Timestamp:
- Jul 5, 2026, 11:23:27 PM (4 days ago)
- Branches:
- master
- Children:
- 15a0f6f
- Parents:
- 97c75bf
- File:
-
- 1 edited
-
libcfa/src/executor.cfa (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/executor.cfa
r97c75bf r9df6059 21 21 T * remove( Buffer(T, TLink) & mutex buf ) with(buf) { 22 22 dlist( T, TLink ) * qptr = &queue; // workaround https://cforall.uwaterloo.ca/trac/ticket/166 23 // if ( isEmpty( *qptr ) ) wait( delay );// no request to process ? => wait24 if ( isEmpty( *qptr ) ) return 0p;// no request to process ? => wait23 // if ( empty( *qptr ) ) wait( delay ); // no request to process ? => wait 24 if ( empty( *qptr ) ) return 0p; // no request to process ? => wait 25 25 return &try_pop_front( *qptr ); 26 26 } // remove
Note:
See TracChangeset
for help on using the changeset viewer.