summaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/NativeLibLoader.java
blob: c0f0fe81e5d6c0d7c61f6fa0403676f13e9cdc0d (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.jogamp.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;
            }
        });
    }
}