Package org.jruby

Examples of org.jruby.RubyThread.raise()


            }
            for (int i = 0; i < blockingThreads.size(); i++) {
                RubyThread thread = blockingThreads.get(i);

                // raise will also wake the thread from selection
                thread.raise(new IRubyObject[]{runtime.newIOError("stream closed").getException()}, Block.NULL_BLOCK);
            }
        } finally {
            if (locked) unlock();
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.