Permalink
Browse files

Mark Uv.run as blocking to release GIL.

  • Loading branch information...
1 parent 92e950d commit 381301ebe2e304e9c94efa55815f1b2b89135364 @mzp mzp committed Aug 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/uv.rb
View
@@ -27,6 +27,7 @@ module UV
attach_function :loop_new, :uv_loop_new, [], :uv_loop_t
attach_function :loop_delete, :uv_loop_delete, [:uv_loop_t], :void
attach_function :default_loop, :uv_default_loop, [], :uv_loop_t
+ @blocking = true
attach_function :run, :uv_run, [:uv_loop_t], :int
attach_function :run_once, :uv_run_once, [:uv_loop_t], :int
attach_function :update_time, :uv_update_time, [:uv_loop_t], :void

0 comments on commit 381301e

Please sign in to comment.