NativeCallbackPointer(Ruby runtime, RubyClass klass, Closure.Handle handle, CallbackInfo cbInfo, NativeFunctionInfo closureInfo) { super(runtime, klass, cbInfo.getParameterTypes().length, new CallbackMemoryIO(runtime, handle)); this.cbInfo = cbInfo; this.closureInfo = closureInfo; }
void dispose() { MemoryIO mem = getMemoryIO(); if (mem instanceof CallbackMemoryIO) { ((CallbackMemoryIO) mem).free(); } }
public synchronized void setAutoRelease(boolean autorelease) { if (isAutoRelease() != autorelease) { handle.setAutoRelease(autorelease); unmanaged = !autorelease; } }
NativeCallbackPointer(Ruby runtime, RubyClass klass, Closure.Handle handle, CallbackInfo cbInfo, NativeFunctionInfo closureInfo) { super(runtime, klass, cbInfo.getParameterTypes().length, new CallbackMemoryIO(runtime, handle)); this.cbInfo = cbInfo; this.closureInfo = closureInfo; }
public synchronized void setAutoRelease(boolean autorelease) { if (isAutoRelease() != autorelease) { handle.setAutoRelease(autorelease); unmanaged = !autorelease; } }
void dispose() { MemoryIO mem = getMemoryIO(); if (mem instanceof CallbackMemoryIO) { ((CallbackMemoryIO) mem).free(); } }
NativeCallbackPointer(Ruby runtime, RubyClass klass, Closure.Handle handle, CallbackInfo cbInfo, NativeFunctionInfo closureInfo) { super(runtime, klass, cbInfo.getParameterTypes().length, new CallbackMemoryIO(runtime, handle)); this.cbInfo = cbInfo; this.closureInfo = closureInfo; }
public synchronized void setAutoRelease(boolean autorelease) { if (isAutoRelease() != autorelease) { handle.setAutoRelease(autorelease); unmanaged = !autorelease; } }
void dispose() { MemoryIO mem = getMemoryIO(); if (mem instanceof CallbackMemoryIO) { ((CallbackMemoryIO) mem).free(); } }
NativeCallbackPointer(Ruby runtime, RubyClass klass, Closure.Handle handle, CallbackInfo cbInfo, NativeFunctionInfo closureInfo) { super(runtime, klass, cbInfo.getParameterTypes().length, new CallbackMemoryIO(runtime, handle)); this.cbInfo = cbInfo; this.closureInfo = closureInfo; }
public synchronized void setAutoRelease(boolean autorelease) { if (isAutoRelease() != autorelease) { handle.setAutoRelease(autorelease); unmanaged = !autorelease; } }
void dispose() { MemoryIO mem = getMemoryIO(); if (mem instanceof CallbackMemoryIO) { ((CallbackMemoryIO) mem).free(); } }
/** */ final CallbackMemoryIO newClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, CallingConvention convention) { NativeFunctionInfo info = new NativeFunctionInfo(runtime, returnType, parameterTypes, convention); final NativeClosureProxy cbProxy = new NativeClosureProxy(runtime, info, proc); final Closure.Handle handle = ClosureManager.getInstance().newClosure(cbProxy, info.callContext); return new CallbackMemoryIO(runtime, handle, proc); }
/** */ final CallbackMemoryIO newClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, CallingConvention convention) { NativeFunctionInfo info = new NativeFunctionInfo(runtime, returnType, parameterTypes, convention); final NativeClosureProxy cbProxy = new NativeClosureProxy(runtime, info, proc); final Closure.Handle handle = ClosureManager.getInstance().newClosure(cbProxy, info.callContext); return new CallbackMemoryIO(runtime, handle, proc); }
/** */ final CallbackMemoryIO newClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, CallingConvention convention) { NativeFunctionInfo info = new NativeFunctionInfo(runtime, returnType, parameterTypes, convention); final NativeClosureProxy cbProxy = new NativeClosureProxy(runtime, info, proc); final Closure.Handle handle = ClosureManager.getInstance().newClosure(cbProxy, info.callContext); return new CallbackMemoryIO(runtime, handle, proc); }
/** */ final CallbackMemoryIO newClosure(Ruby runtime, Type returnType, Type[] parameterTypes, Object proc, CallingConvention convention) { NativeFunctionInfo info = new NativeFunctionInfo(runtime, returnType, parameterTypes, convention); final NativeClosureProxy cbProxy = new NativeClosureProxy(runtime, info, proc); final Closure.Handle handle = ClosureManager.getInstance().newClosure(cbProxy, info.callContext); return new CallbackMemoryIO(runtime, handle, proc); }