Skip to content

Commit d78a680

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 c19ff7a commit d78a680

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

private/private.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,12 +221,12 @@ dispatch_queue_serial_t
221221
_dispatch_runloop_root_queue_create_4CF(const char *_Nullable label,
222222
unsigned long flags);
223223

224-
#if TARGET_OS_MAC || defined(_WIN32)
225224
API_AVAILABLE(macos(10.9), ios(7.0))
226225
DISPATCH_EXPORT DISPATCH_WARN_RESULT DISPATCH_NOTHROW
227226
dispatch_runloop_handle_t
228227
_dispatch_runloop_root_queue_get_port_4CF(dispatch_queue_t queue);
229228

229+
#if TARGET_OS_MAC
230230
API_AVAILABLE(macos(10.13.2), ios(11.2), tvos(11.2), watchos(4.2))
231231
DISPATCH_EXPORT DISPATCH_WARN_RESULT DISPATCH_NOTHROW
232232
bool

src/queue.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6929,13 +6929,11 @@ _dispatch_get_main_queue_handle_4CF(void)
69296929
return _dispatch_runloop_queue_get_handle(dq->_as_dl);
69306930
}
69316931

6932-
#if TARGET_OS_MAC
69336932
dispatch_runloop_handle_t
69346933
_dispatch_get_main_queue_port_4CF(void)
69356934
{
69366935
return _dispatch_get_main_queue_handle_4CF();
69376936
}
6938-
#endif
69396937

69406938
void
69416939
_dispatch_main_queue_callback_4CF(

0 commit comments

Comments
 (0)