Skip to content
This repository has been archived by the owner on Jul 22, 2024. It is now read-only.

Commit

Permalink
Disable uv_backend_fd integration (#630)
Browse files Browse the repository at this point in the history
Might fix #503
  • Loading branch information
vtjnash authored Mar 3, 2022
1 parent d76faaa commit 501b0a5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/GLib/signals.jl
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,9 @@ function __init__gmainloop__()
ccall((:g_source_set_callback, GLib.libglib), Nothing, (Ptr{Nothing}, Ptr{Nothing}, UInt, Ptr{Nothing}),
src, @cfunction(g_yield, Cint, (UInt,)), 1, C_NULL)

uv_fd = Sys.iswindows() ? -1 : ccall(:uv_backend_fd, Cint, (Ptr{Nothing},), Base.eventloop())
uv_fd = -1
# TODO: renable this after fixing integration with the default scheduler backend
# uv_fd = Sys.iswindows() ? -1 : ccall(:uv_backend_fd, Cint, (Ptr{Nothing},), Base.eventloop())
global uv_pollfd = _GPollFD(uv_fd, 0x1)
if (uv_pollfd::_GPollFD).fd != -1
ccall((:g_source_add_poll, GLib.libglib), Nothing, (Ptr{Nothing}, Ptr{_GPollFD}), src, Ref(uv_pollfd::_GPollFD))
Expand Down

0 comments on commit 501b0a5

Please sign in to comment.