Skip to content

Commit

Permalink
Default to running the event loop on the main thread
Browse files Browse the repository at this point in the history
This provides a massive speedup. From the sound of this, you would
think this would cause blocking of the user interface while the
Ruby code runs.  However, that happens regardless of this setting,
so I'm not sure what advantages there are to running the eventloop
on a separate thread.

Fixes #26
  • Loading branch information
jeremyevans committed Mar 23, 2021
1 parent 105ecc1 commit 85d228a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tk.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1210,7 +1210,7 @@ module TkCore
=end
end
else
RUN_EVENTLOOP_ON_MAIN_THREAD = false
RUN_EVENTLOOP_ON_MAIN_THREAD = true
end

else # Ruby 1.8.x
Expand Down

0 comments on commit 85d228a

Please sign in to comment.