Skip to content

Commit

Permalink
queue: expose _dispatch_get_main_queue_port_4CF
Browse files Browse the repository at this point in the history
This was being re-implemented in CF by means of a macro.  Just expose
the function instead.
  • Loading branch information
compnerd committed Mar 7, 2019
1 parent 1088aab commit 9ce4395
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions private/private.h
Original file line number Diff line number Diff line change
Expand Up @@ -196,12 +196,10 @@ typedef void *dispatch_runloop_handle_t;
#error "runloop support not implemented on this platform"
#endif

#if TARGET_OS_MAC
API_AVAILABLE(macos(10.6), ios(4.0))
DISPATCH_EXPORT DISPATCH_CONST DISPATCH_WARN_RESULT DISPATCH_NOTHROW
dispatch_runloop_handle_t
_dispatch_get_main_queue_port_4CF(void);
#endif

API_AVAILABLE(macos(10.12), ios(10.0), tvos(10.0), watchos(3.0))
DISPATCH_EXPORT DISPATCH_NOTHROW
Expand Down
2 changes: 0 additions & 2 deletions src/queue.c
Original file line number Diff line number Diff line change
Expand Up @@ -6368,13 +6368,11 @@ _dispatch_get_main_queue_handle_4CF(void)
return _dispatch_runloop_queue_get_handle(dq);
}

#if TARGET_OS_MAC
dispatch_runloop_handle_t
_dispatch_get_main_queue_port_4CF(void)
{
return _dispatch_get_main_queue_handle_4CF();
}
#endif

static bool main_q_is_draining;

Expand Down

0 comments on commit 9ce4395

Please sign in to comment.