Changeset 731 for soft/giet_vm/giet_libs
- Timestamp:
- Nov 22, 2015, 2:54:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_libs/mwmr_channel.c
r722 r731 321 321 } 322 322 323 // we could deschedule before retry...324 // giet_context_switch();323 // deschedule before retry 324 giet_pthread_yield(); 325 325 } 326 326 } // end mwmr_write() … … 408 408 } 409 409 410 // we could deschedule before retry...411 // giet_context_switch();410 // deschedule before retry 411 giet_pthread_yield(); 412 412 } 413 413 } // end mwmr_read() … … 472 472 { 473 473 items = nb_mwmr_read( bufio->mwmr , (uint32_t*)bufio->base , bufio->nitems ); 474 475 // deschedule if channel empty 476 if (items == 0 ) giet_pthread_yield(); 474 477 } 475 478 while ( items == 0 ); … … 513 516 { 514 517 items = nb_mwmr_read( bufio->mwmr , (uint32_t*)bufio->base , bufio->nitems ); 518 519 // deschedule if channel empty 520 if (items == 0 ) giet_pthread_yield(); 515 521 } 516 522 while ( items == 0 );
Note: See TracChangeset
for help on using the changeset viewer.