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