Skip to content

Commit 9ce4395

Browse files
committed
queue: expose _dispatch_get_main_queue_port_4CF
This was being re-implemented in CF by means of a macro. Just expose the function instead.
1 parent 1088aab commit 9ce4395

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

private/private.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,10 @@ typedef void *dispatch_runloop_handle_t;
196196
#error "runloop support not implemented on this platform"
197197
#endif
198198

199-
#if TARGET_OS_MAC
200199
API_AVAILABLE(macos(10.6), ios(4.0))
201200
DISPATCH_EXPORT DISPATCH_CONST DISPATCH_WARN_RESULT DISPATCH_NOTHROW
202201
dispatch_runloop_handle_t
203202
_dispatch_get_main_queue_port_4CF(void);
204-
#endif
205203

206204
API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0), watchos(3.0))
207205
DISPATCH_EXPORT DISPATCH_NOTHROW

src/queue.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6368,13 +6368,11 @@ _dispatch_get_main_queue_handle_4CF(void)
63686368
return _dispatch_runloop_queue_get_handle(dq);
63696369
}
63706370

6371-
#if TARGET_OS_MAC
63726371
dispatch_runloop_handle_t
63736372
_dispatch_get_main_queue_port_4CF(void)
63746373
{
63756374
return _dispatch_get_main_queue_handle_4CF();
63766375
}
6377-
#endif
63786376

63796377
static bool main_q_is_draining;
63806378

0 commit comments

Comments
 (0)