blob: 2761cb3cd64c318aa518fac34ceb819c3628445c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package com.jogamp.opencl;
import java.security.AccessController;
import java.security.PrivilegedAction;
import com.jogamp.common.jvm.JNILibLoaderBase;
/**
*
* @author Michael Bien
*/
class NativeLibLoader extends JNILibLoaderBase {
public static void loadJOCL() {
AccessController.doPrivileged(new PrivilegedAction<Object>() {
public Object run() {
loadLibrary("jocl", null, true);
return null;
}
});
}
}
|