diff options
Diffstat (limited to 'src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java')
-rw-r--r-- | src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java b/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java index 1737ba1..6a93973 100644 --- a/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java +++ b/src/java/com/jogamp/gluegen/JavaMethodBindingEmitter.java @@ -421,7 +421,7 @@ public class JavaMethodBindingEmitter extends FunctionEmitter { if (needComma) { unit.emit(", "); } - unit.emit("String callbackSignature, long[/*1*/] nativeUserParam"); + unit.emit("String callbackSignature, Object lockObj, long[/*1*/] nativeUserParam"); ++numEmitted; } return numEmitted; @@ -1095,10 +1095,12 @@ public class JavaMethodBindingEmitter extends FunctionEmitter { ++numArgsEmitted; } if( null != javaCallback ) { + final String lowIfaceName = CodeGenUtils.decapitalizeString( getInterfaceName() ); + final String lockInstanceName = lowIfaceName+"Lock"; if (needComma) { unit.emit(", "); } - unit.emit("\"" + javaCallback.cbMethodSignature + "\", nativeUserParam"); + unit.emit("\"" + javaCallback.cbMethodSignature + "\", "+lockInstanceName+", nativeUserParam"); ++numArgsEmitted; } return numArgsEmitted; |