Skip to content

Commit

Permalink
Yield thread instead of sleeping
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Jan 17, 2025
1 parent 5ebc34b commit 228e2b4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions libogc/sdgecko_io.c
Original file line number Diff line number Diff line change
Expand Up @@ -690,14 +690,12 @@ static s32 __card_dataread(s32 drv_no,void *buf,u32 len)
return CARDIO_ERROR_IOERROR;
}
} else {
LWP_YieldThread();
if(EXI_ImmEx(drv_no,ptr,len,EXI_READ)==0) {
EXI_Deselect(drv_no);
EXI_Unlock(drv_no);
return CARDIO_ERROR_IOERROR;
}

/* sleep 1us*/
usleep(1);
}

if(EXI_ImmEx(drv_no,&crc_org,2,EXI_READ)==0) {
Expand Down

0 comments on commit 228e2b4

Please sign in to comment.