Open the-felis-leo opened 7 years ago
In order to allow concurrent execution of a C program into a unique JVM, Instead of using static fields and methods, use instance.
Said actual generated code look like :
class MyModule { public static void myMethod() { ExternModule.externMethod(); } }
Change it into:
class MyModule { ExternModule externModule; public MyModule(ProcessContext ctx) { externModule = ctx.get(ExternModule.class); } public void myMethod() { externModule.externMethod(); } }
With ProcessContext.get() which lazy instantiate module.
In order to allow concurrent execution of a C program into a unique JVM, Instead of using static fields and methods, use instance.
Said actual generated code look like :
Change it into:
With ProcessContext.get() which lazy instantiate module.