Package org.bytedeco.javacpp.annotation
Annotation Type CriticalRegion
-
@Documented @Retention(RUNTIME) @Target({TYPE,METHOD}) public @interface CriticalRegion
In some methods,Generator
will generate code to transfer arrays from the JVM to native code using theGet/Release<primitivetype>ArrayElements
methods. However these methods copy the underlying data. With this annotation, the generated code will always call theGet/ReleasePrimitiveArrayCritical
methods instead.- See Also:
Generator