Skip to content

Commit

Permalink
Mark Uv.run as blocking to release GIL.
Browse files Browse the repository at this point in the history
  • Loading branch information
mzp committed Aug 14, 2012
1 parent 92e950d commit 381301e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/uv.rb
Expand Up @@ -27,6 +27,7 @@ module UV
attach_function :loop_new, :uv_loop_new, [], :uv_loop_t attach_function :loop_new, :uv_loop_new, [], :uv_loop_t
attach_function :loop_delete, :uv_loop_delete, [:uv_loop_t], :void attach_function :loop_delete, :uv_loop_delete, [:uv_loop_t], :void
attach_function :default_loop, :uv_default_loop, [], :uv_loop_t attach_function :default_loop, :uv_default_loop, [], :uv_loop_t
@blocking = true
attach_function :run, :uv_run, [:uv_loop_t], :int attach_function :run, :uv_run, [:uv_loop_t], :int
attach_function :run_once, :uv_run_once, [: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 attach_function :update_time, :uv_update_time, [:uv_loop_t], :void
Expand Down

0 comments on commit 381301e

Please sign in to comment.