Skip to content

Commit a1c8b47

Browse files
committed
formatting
1 parent 4faf129 commit a1c8b47

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

src/queue.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6576,6 +6576,7 @@ _dispatch_runloop_queue_handle_init(void *ctxt)
65766576
}
65776577
handle = fd;
65786578
#elif defined(__unix__) && !defined(__linux__)
6579+
// swift-corelib-foundation PR #3004 implemented a pipe based queue handle
65796580
int fds[2];
65806581
int r = pipe2(fds, O_CLOEXEC | O_NONBLOCK);
65816582
if (r == -1) {

src/shims/lock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ _dispatch_wake_by_address(uint32_t volatile *address)
556556
#elif defined(_WIN32)
557557
WakeByAddressAll((uint32_t *)address);
558558
#elif defined(__FreeBSD__)
559-
_umtx_op((void*)address, UMTX_OP_WAKE, INT_MAX, 0, 0);
559+
_umtx_op((void*)address, UMTX_OP_WAKE, INT_MAX, 0, 0);
560560
#else
561561
(void)address;
562562
#endif

src/shims/lock.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ typedef uint32_t dispatch_lock;
9292
#define DLOCK_OWNER_MASK ((dispatch_lock)0xfffffffc)
9393
#define DLOCK_WAITERS_BIT ((dispatch_lock)0x00000001)
9494
#define DLOCK_FAILED_TRYLOCK_BIT ((dispatch_lock)0x00000002)
95-
#define _dispatch_tid_self() ((dispatch_tid)(_dispatch_get_tsd_base()->tid << 2))
95+
#define _dispatch_tid_self() ((dispatch_tid)(_dispatch_get_tsd_base()->tid << 2))
9696

9797
DISPATCH_ALWAYS_INLINE
9898
static inline dispatch_tid

src/swift/shims/DispatchOverlayShims.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ SWIFT_DISPATCH_SOURCE_TYPE(VNODE)
9090

9191
#if defined(__FreeBSD__)
9292
SWIFT_DISPATCH_SOURCE_TYPE(PROC)
93-
//SWIFT_DISPATCH_SOURCE_TYPE(VNODE)
93+
SWIFT_DISPATCH_SOURCE_TYPE(VNODE)
9494
#endif
9595

9696
extern void

0 commit comments

Comments
 (0)