Skip to content

Commit

Permalink
fix last modifiecation
Browse files Browse the repository at this point in the history
  • Loading branch information
rfm committed Jul 7, 2024
1 parent 9442ff8 commit 33e5b72
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions Source/NSRunLoop.m
Original file line number Diff line number Diff line change
Expand Up @@ -412,14 +412,6 @@ + (void*) mainQueueFileDescriptor
#if HAVE_DISPATCH_GET_MAIN_QUEUE_HANDLE_NP
return (void*)(uintptr_t)dispatch_get_main_queue_handle_np();
#elif HAVE__DISPATCH_GET_MAIN_QUEUE_HANDLE_4CF

#if defined(__linux__)
uint64_t value;
int fd = (int)(intptr_t)data;
int n = eventfd_read(fd, &value);
(void) n;
#endif

return (void*)(uintptr_t)_dispatch_get_main_queue_handle_4CF();
#else
#error libdispatch missing main queue handle function
Expand All @@ -434,6 +426,12 @@ - (void) receivedEvent: (void*)data
#if HAVE_DISPATCH_MAIN_QUEUE_DRAIN_NP
dispatch_main_queue_drain_np();
#elif HAVE__DISPATCH_MAIN_QUEUE_CALLBACK_4CF
#if defined(__linux__)
uint64_t value;
int fd = (int)(intptr_t)data;
int n = eventfd_read(fd, &value);
(void) n;
#endif
_dispatch_main_queue_callback_4CF(NULL);
#else
#error libdispatch missing main queue callback function
Expand Down

0 comments on commit 33e5b72

Please sign in to comment.