Skip to content

Commit 8d2bdd8

Browse files
committed
Apply clang-format
1 parent bb552dc commit 8d2bdd8

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

core/threaded/reactor_threaded.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,10 +202,11 @@ bool wait_until(instant_t wait_until_time, lf_cond_t* condition) {
202202
// Check whether we actually need to wait, or if we have already passed the timepoint.
203203
interval_t wait_duration = wait_until_time - lf_time_physical();
204204
if (wait_duration < lf_min_sleep_duration) {
205-
LF_PRINT_DEBUG("Wait time " PRINTF_TIME " is less than lf_min_sleep_duration " PRINTF_TIME ". Performing busy wait.",
205+
LF_PRINT_DEBUG("Wait time " PRINTF_TIME " is less than lf_min_sleep_duration " PRINTF_TIME
206+
". Performing busy wait.",
206207
wait_duration, lf_min_sleep_duration);
207208
while (lf_time_physical() < wait_until_time) {
208-
//Busy wait
209+
// Busy wait
209210
}
210211
return true;
211212
}

include/core/utils/impl/hashmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
#define V void*
2020
#endif
2121
#ifndef HASH_OF
22-
#define HASH_OF(key) (size_t)key
22+
#define HASH_OF(key) (size_t) key
2323
#endif
2424
#ifndef HASHMAP
2525
#define HASHMAP(token) hashmap##_##token

include/core/utils/impl/pointer_hashmap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
#define HASHMAP(token) hashmap_object2int##_##token
3131
#define K void*
3232
#define V int
33-
#define HASH_OF(key) (size_t)key
33+
#define HASH_OF(key) (size_t) key
3434
#include "hashmap.h"
3535
#undef HASHMAP
3636
#undef K

0 commit comments

Comments
 (0)