diff options
author | Mark Spruiell <mes@zeroc.com> | 2006-08-01 21:05:57 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2006-08-01 21:05:57 +0000 |
commit | 1ade94ea5809e3519610833e81a7d343ab1588b3 (patch) | |
tree | 02f2a800c5c65bf3f785654153801e406a2d2d35 /rb/src/IceRuby/Util.cpp | |
parent | removing LoggerWrapper due to thread safety issues (diff) | |
download | ice-1ade94ea5809e3519610833e81a7d343ab1588b3.tar.bz2 ice-1ade94ea5809e3519610833e81a7d343ab1588b3.tar.xz ice-1ade94ea5809e3519610833e81a7d343ab1588b3.zip |
removing RubyThread
Diffstat (limited to 'rb/src/IceRuby/Util.cpp')
-rw-r--r-- | rb/src/IceRuby/Util.cpp | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/rb/src/IceRuby/Util.cpp b/rb/src/IceRuby/Util.cpp index a39207ca4e8..d5096667065 100644 --- a/rb/src/IceRuby/Util.cpp +++ b/rb/src/IceRuby/Util.cpp @@ -491,37 +491,3 @@ IceRuby::convertLocalException(const Ice::LocalException& ex) return rb_exc_new2(rb_eRuntimeError, msg.c_str()); } } - -extern "C" -VALUE -IceRuby_RubyThread_threadMain(RubyThreadPtr* p) -{ - ICE_RUBY_TRY - { - assert(p); - try - { - (*p)->run(); - } - catch(...) - { - delete p; - throw; - } - delete p; - } - ICE_RUBY_CATCH - return Qnil; -} - -void -IceRuby::RubyThread::start(bool join) -{ - VALUE t = callRuby(rb_thread_create, CAST_METHOD(IceRuby_RubyThread_threadMain), - reinterpret_cast<void*>(new RubyThreadPtr(this))); - assert(!NIL_P(t)); - if(join) - { - callRuby(rb_funcall, t, rb_intern("join"), 0); - } -} |