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