Use rb_thread_alone exclusively to determine if the query should be Thread scheduled

This commit is contained in:
Lourens Naude 2008-11-01 17:12:03 +00:00
parent 57712a64e6
commit 79f742908d
1 changed files with 1 additions and 1 deletions

View File

@ -1035,7 +1035,7 @@ static void schedule_query(VALUE obj, VALUE timeout)
} }
static int should_schedule_query(){ static int should_schedule_query(){
return ( ( rb_thread_main() == rb_thread_current() ) && rb_thread_alone() ) != 1; return rb_thread_alone() != 1;
} }
/* async_query(sql,timeout=nil) */ /* async_query(sql,timeout=nil) */