github issue 378

This commit is contained in:
rfm 2024-07-07 13:56:20 +01:00
parent cb68ba8864
commit 9442ff8dac

View file

@ -412,6 +412,14 @@ static inline BOOL timerInvalidated(NSTimer *t)
#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