Skip to content

Commit 17ed7bd

Browse files
committed
indentation fix and address comments
1 parent f642f48 commit 17ed7bd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/event/workqueue.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ _dispatch_workq_count_runnable_workers(dispatch_workq_monitor_t mon)
313313
}
314314

315315
// only care about up to WORKQ_MAX_TRACKED_TIDS threads
316-
size = size > sizeof(kp) ? sizeof(kp) : size;
316+
size = MIN(sizeof(kp), size);
317317

318318
if (sysctl(mib, 4, kp, &size, NULL, 0) < 0) {
319319
_dispatch_debug("workq: failed to get kinfo_proc[] from sysctl");

src/shims/lock.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ _dispatch_thread_switch(dispatch_lock value, dispatch_lock_options_t flags,
6464
(void)value;
6565
(void)flags;
6666
(void)timeout;
67-
sched_yield();
67+
sched_yield();
6868
}
6969
#endif // HAVE_UL_UNFAIR_LOCK
7070
#elif defined(__unix__)
@@ -551,8 +551,8 @@ _dispatch_wait_on_address(uint32_t volatile *_address, uint32_t value,
551551
if (dwMilliseconds == 0) return ETIMEDOUT;
552552
return WaitOnAddress(address, &value, sizeof(value), dwMilliseconds) == TRUE;
553553
#elif defined(__FreeBSD__)
554-
(void)flags;
555-
if (nsecs != DISPATCH_TIME_FOREVER) {
554+
(void)flags;
555+
if (nsecs != DISPATCH_TIME_FOREVER) {
556556
struct timespec ts = {
557557
.tv_sec = (__typeof__(ts.tv_sec))(nsecs / NSEC_PER_SEC),
558558
.tv_nsec = (__typeof__(ts.tv_nsec))(nsecs % NSEC_PER_SEC),

0 commit comments

Comments
 (0)