Changeset 059ad16 for libcfa/src/concurrency/kernel.cfa
- Timestamp:
- Nov 19, 2021, 3:53:47 PM (3 years ago)
- Branches:
- ADT, ast-experimental, enum, forall-pointer-decay, master, pthread-emulation, qualifiedEnum
- Children:
- 7ef162b2
- Parents:
- cd4c605
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/concurrency/kernel.cfa
rcd4c605 r059ad16 130 130 extern void __cfa_io_start( processor * ); 131 131 extern bool __cfa_io_drain( processor * ); 132 extern void __cfa_io_flush( processor *);132 extern bool __cfa_io_flush( processor *, bool wait ); 133 133 extern void __cfa_io_stop ( processor * ); 134 134 static inline bool __maybe_io_drain( processor * ); … … 197 197 if( !readyThread ) { 198 198 ready_schedule_lock(); 199 __cfa_io_flush( this );199 __cfa_io_flush( this, false ); 200 200 ready_schedule_unlock(); 201 201 … … 251 251 if(this->io.pending && !this->io.dirty) { 252 252 ready_schedule_lock(); 253 __cfa_io_flush( this );253 __cfa_io_flush( this, false ); 254 254 ready_schedule_unlock(); 255 255 } … … 268 268 269 269 // If we can't find a thread, might as well flush any outstanding I/O 270 if(this->io.pending) { __cfa_io_flush( this ); }270 if(this->io.pending) { __cfa_io_flush( this, false ); } 271 271 272 272 // Spin a little on I/O, just in case … … 363 363 364 364 if(this->io.pending && !this->io.dirty) { 365 __cfa_io_flush( this );365 __cfa_io_flush( this, false ); 366 366 } 367 367
Note: See TracChangeset
for help on using the changeset viewer.