public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
public final org.jruby.ext.ffi.Pointer getCallback(Ruby runtime, CallbackInfo cbInfo, Object proc) { return proc instanceof RubyObject ? getCallbackFactory(runtime, cbInfo).getCallback((RubyObject) proc) : getCallbackFactory(runtime, cbInfo).newCallback(proc); }
private synchronized Pointer getCallbackPointer(IRubyObject callable, CachingCallSite callSite) { NativeCallbackPointer cbptr = (NativeCallbackPointer) closures.get(callable); if (cbptr != null) { return cbptr; } closures.put(callable, cbptr = newCallback(callable, callSite)); if (callable.getMetaClass().getFFIHandleAccessorForRead().get(callable) == null) { callable.getMetaClass().getFFIHandleAccessorForWrite().set(callable, cbptr); } return cbptr; }
private synchronized Pointer getCallbackPointer(IRubyObject callable, CachingCallSite callSite) { NativeCallbackPointer cbptr = (NativeCallbackPointer) closures.get(callable); if (cbptr != null) { return cbptr; } closures.put(callable, cbptr = newCallback(callable, callSite)); if (callable.getMetaClass().getFFIHandleAccessorForRead().get(callable) == null) { callable.getMetaClass().getFFIHandleAccessorForWrite().set(callable, cbptr); } return cbptr; }
private synchronized Pointer getCallbackPointer(IRubyObject callable, CachingCallSite callSite) { NativeCallbackPointer cbptr = (NativeCallbackPointer) closures.get(callable); if (cbptr != null) { return cbptr; } closures.put(callable, cbptr = newCallback(callable, callSite)); if (callable.getMetaClass().getFFIHandleAccessorForRead().get(callable) == null) { callable.getMetaClass().getFFIHandleAccessorForWrite().set(callable, cbptr); } return cbptr; }
private synchronized Pointer getCallbackPointer(IRubyObject callable, CachingCallSite callSite) { NativeCallbackPointer cbptr = (NativeCallbackPointer) closures.get(callable); if (cbptr != null) { return cbptr; } closures.put(callable, cbptr = newCallback(callable, callSite)); if (callable.getMetaClass().getFFIHandleAccessorForRead().get(callable) == null) { callable.getMetaClass().getFFIHandleAccessorForWrite().set(callable, cbptr); } return cbptr; }
params[cbIndex] = cb = cbFactory.newCallback(block);
params[cbIndex] = cb = cbFactory.newCallback(block);
params[cbIndex] = cb = cbFactory.newCallback(block);
params[cbIndex] = cb = cbFactory.newCallback(block);