Skip to content

Commit

Permalink
Apply clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
byeonggiljun committed Jan 28, 2025
1 parent bb552dc commit c2b5f8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/threaded/reactor_threaded.c
Original file line number Diff line number Diff line change
Expand Up @@ -202,10 +202,11 @@ bool wait_until(instant_t wait_until_time, lf_cond_t* condition) {
// Check whether we actually need to wait, or if we have already passed the timepoint.
interval_t wait_duration = wait_until_time - lf_time_physical();
if (wait_duration < lf_min_sleep_duration) {
LF_PRINT_DEBUG("Wait time " PRINTF_TIME " is less than lf_min_sleep_duration " PRINTF_TIME ". Performing busy wait.",
LF_PRINT_DEBUG("Wait time " PRINTF_TIME " is less than lf_min_sleep_duration " PRINTF_TIME
". Performing busy wait.",
wait_duration, lf_min_sleep_duration);
while (lf_time_physical() < wait_until_time) {
//Busy wait
// Busy wait
}
return true;
}
Expand Down

0 comments on commit c2b5f8d

Please sign in to comment.