aboutsummaryrefslogtreecommitdiffstats
path: root/src/com/mbien/opencl/NativeLibLoader.java
blob: b8148432d5d33cec5090c14bf1cb61a662249753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 {

    @SuppressWarnings("unchecked")
    public static void loadJOCL() {
        AccessController.doPrivileged(new PrivilegedAction() {
            public Object run() {
                loadLibrary("jocl", null, true);
                return null;
            }
        });
    }
}