LibreOffice Module bridges (master) 1
|
#include <string.h>
#include <jvmaccess/virtualmachine.hxx>
#include <rtl/byteseq.h>
#include <rtl/byteseq.hxx>
#include <rtl/ref.hxx>
#include <sal/types.h>
#include <uno/threadpool.h>
#include <jni.h>
#include <new>
#include <utility>
Go to the source code of this file.
Functions | |
static void | executeRequest (void *data) |
SAL_JNI_EXPORT jbyteArray JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_threadId (JNIEnv *env, SAL_UNUSED_PARAMETER jclass) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT jlong JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_create (JNIEnv *env, SAL_UNUSED_PARAMETER jclass) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_attach (SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT jobject JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_enter (JNIEnv *env, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_detach (SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_putJob (JNIEnv *env, SAL_UNUSED_PARAMETER jclass, jlong pool, jbyteArray threadId, jobject job, jboolean request, jboolean oneWay) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_dispose (SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C() |
SAL_JNI_EXPORT void JNICALL | Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_destroy (SAL_UNUSED_PARAMETER JNIEnv *, SAL_UNUSED_PARAMETER jclass, jlong pool) SAL_THROW_EXTERN_C() |
|
static |
Definition at line 68 of file nativethreadpool.cxx.
References env, and jvmaccess::VirtualMachine::AttachGuard::getEnvironment().
Referenced by Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_putJob().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_attach | ( | SAL_UNUSED_PARAMETER JNIEnv * | , |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool | ||
) |
Definition at line 143 of file nativethreadpool.cxx.
References SAL_THROW_EXTERN_C, and uno_threadpool_attach().
SAL_JNI_EXPORT jlong JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_create | ( | JNIEnv * | env, |
SAL_UNUSED_PARAMETER | jclass | ||
) |
Definition at line 113 of file nativethreadpool.cxx.
References env, SAL_THROW_EXTERN_C, and uno_threadpool_create().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_destroy | ( | SAL_UNUSED_PARAMETER JNIEnv * | , |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool | ||
) |
Definition at line 218 of file nativethreadpool.cxx.
References p, SAL_THROW_EXTERN_C, and uno_threadpool_destroy().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_detach | ( | SAL_UNUSED_PARAMETER JNIEnv * | , |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool | ||
) |
Definition at line 167 of file nativethreadpool.cxx.
References SAL_THROW_EXTERN_C, and uno_threadpool_detach().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_dispose | ( | SAL_UNUSED_PARAMETER JNIEnv * | , |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool | ||
) |
Definition at line 210 of file nativethreadpool.cxx.
References SAL_THROW_EXTERN_C, and uno_threadpool_dispose().
SAL_JNI_EXPORT jobject JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_enter | ( | JNIEnv * | env, |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool | ||
) |
Definition at line 151 of file nativethreadpool.cxx.
References env, SAL_THROW_EXTERN_C, and uno_threadpool_enter().
SAL_JNI_EXPORT void JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_putJob | ( | JNIEnv * | env, |
SAL_UNUSED_PARAMETER | jclass, | ||
jlong | pool, | ||
jbyteArray | threadId, | ||
jobject | job, | ||
jboolean | request, | ||
jboolean | oneWay | ||
) |
Definition at line 175 of file nativethreadpool.cxx.
References env, executeRequest(), p, SAL_THROW_EXTERN_C, and uno_threadpool_putJob().
SAL_JNI_EXPORT jbyteArray JNICALL Java_com_sun_star_lib_uno_environments_remote_NativeThreadPool_threadId | ( | JNIEnv * | env, |
SAL_UNUSED_PARAMETER | jclass | ||
) |
Definition at line 88 of file nativethreadpool.cxx.
References a, env, n, p, SAL_THROW_EXTERN_C, uno_getIdOfCurrentThread(), and uno_releaseIdFromCurrentThread().