From a7a4f63d9b6e6af365a7add9351713336d95bb64 Mon Sep 17 00:00:00 2001 From: ko1 Date: Sun, 31 Aug 2008 07:44:24 +0000 Subject: * include/ruby/intern.h: rename RB_UBF_DFL to RUBY_UBF_IO and RUBY_UBF_PROCESS. Because there is no default (universal) unblocking function. * ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18985 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/intern.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/ruby') diff --git a/include/ruby/intern.h b/include/ruby/intern.h index b16237521..95e70c52b 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -661,7 +661,8 @@ typedef VALUE rb_blocking_function_t(void *); void rb_thread_check_ints(void); VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1, rb_unblock_function_t *ubf, void *data2); -#define RB_UBF_DFL ((rb_unblock_function_t *)-1) +#define RUBY_UBF_IO ((rb_unblock_function_t *)-1) +#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1) VALUE rb_mutex_new(void); VALUE rb_mutex_locked_p(VALUE mutex); VALUE rb_mutex_try_lock(VALUE mutex); -- cgit