Newer
Older
2018-fumichan-thesis / form-sample / vendor / bundle / ruby / 2.5.0 / gems / concurrent-ruby-1.1.3 / ext / concurrent-ruby / ConcurrentRubyService.java
import org.jruby.Ruby;
import org.jruby.runtime.load.BasicLibraryService;

import java.io.IOException;

public class ConcurrentRubyService implements BasicLibraryService {

    public boolean basicLoad(final Ruby runtime) throws IOException {
        new com.concurrent_ruby.ext.AtomicReferenceLibrary().load(runtime, false);
        new com.concurrent_ruby.ext.JavaAtomicBooleanLibrary().load(runtime, false);
        new com.concurrent_ruby.ext.JavaAtomicFixnumLibrary().load(runtime, false);
        new com.concurrent_ruby.ext.JavaSemaphoreLibrary().load(runtime, false);
        new com.concurrent_ruby.ext.SynchronizationLibrary().load(runtime, false);
        new com.concurrent_ruby.ext.JRubyMapBackendLibrary().load(runtime, false);
        return true;
    }
}