Permalink
Browse files

Merge pull request #2 from mzp/mark_uv_loop_as_blocking

Mark UV.run as blocking to release GIL.
  • Loading branch information...
2 parents a438e05 + 381301e commit 2ca5582c5f127fc1d89298edb2da0cea69356ad4 @avalanche123 committed Aug 14, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/uv.rb
View
1 lib/uv.rb
@@ -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 2ca5582

Please sign in to comment.