Examples of becomeSynchronized()


Examples of org.jruby.RubyModule.becomeSynchronized()

    public void load(Ruby runtime, boolean wrap) throws IOException {
        RubyModule syncModule = runtime.getOrCreateModule("JRuby").defineModuleUnder("Synchronized");
        syncModule.getSingletonClass().defineAnnotatedMethods(RubyJRuby.JRubySynchronizedMeta.class);
        // make Synchronized itself be synchronized, so subclasses created later pick that up
        syncModule.becomeSynchronized();
    }
}
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.