Package org.jruby.ext.fiber

Examples of org.jruby.ext.fiber.ThreadFiber


            thread.setContext(this);
        }
    }
   
    public ThreadFiber getFiber() {
        ThreadFiber f = fiber.get();
       
        if (f == null) return rootFiber;
       
        return f;
    }
View Full Code Here


            Continuation c = catchStack[i];
            if (c.tag == tag) return c;
        }

        // if this is a fiber, search prev for tag
        ThreadFiber fiber = getFiber();
        ThreadFiber prev;
        if (fiber != null && (prev = fiber.getData().getPrev()) != null) {
            return prev.getThread().getContext().getActiveCatch(tag);
        }

        return null;
    }
View Full Code Here

TOP

Related Classes of org.jruby.ext.fiber.ThreadFiber

Copyright © 2018 www.massapicom. 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.