public class Pthread extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
Pthread.pthread_attr_t |
static interface |
Pthread.pthread_cond_t |
static interface |
Pthread.pthread_condattr_t |
static interface |
Pthread.pthread_mutex_t |
static interface |
Pthread.pthread_mutexattr_t |
static interface |
Pthread.pthread_rwlock_t |
static interface |
Pthread.pthread_rwlockattr_t |
static interface |
Pthread.pthread_t |
static interface |
Pthread.pthread_tPointer |
| Constructor and Description |
|---|
Pthread() |
| Modifier and Type | Method and Description |
|---|---|
static int |
pthread_atfork(org.graalvm.word.PointerBase prepare,
org.graalvm.word.PointerBase parent,
org.graalvm.word.PointerBase child)
Install handlers to be called when a new process is created with FORK.
|
static int |
pthread_attr_destroy(Pthread.pthread_attr_t attr)
Destroy thread attribute *ATTR.
|
static int |
pthread_attr_getaffinity_np(Pthread.pthread_attr_t attr,
org.graalvm.word.UnsignedWord cpusetsize,
org.graalvm.word.PointerBase cpuset)
Get bit set in CPUSET representing the processors threads created with ATTR can run on.
|
static int |
pthread_attr_getdetachstate(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer detachstate)
Get detach state attribute.
|
static int |
pthread_attr_getguardsize(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.WordPointer guardsize)
Get the size of the guard area created for stack overflow protection.
|
static int |
pthread_attr_getinheritsched(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer inherit)
Return in *INHERIT the scheduling inheritance mode of *ATTR.
|
static int |
pthread_attr_getschedparam(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer param)
Return in *PARAM the scheduling parameters of *ATTR.
|
static int |
pthread_attr_getschedpolicy(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer policy)
Return in *POLICY the scheduling policy of *ATTR.
|
static int |
pthread_attr_getscope(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer scope)
Return in *SCOPE the scheduling contention scope of *ATTR.
|
static int |
pthread_attr_getstack(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.WordPointer stackaddr,
org.graalvm.nativeimage.c.type.WordPointer stacksize)
Return the previously set address for the stack.
|
static int |
pthread_attr_getstackaddr(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.WordPointer stackaddr)
Return the previously set address for the stack.
|
static int |
pthread_attr_getstacksize(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.WordPointer stacksize)
Return the currently used minimal stack size.
|
static int |
pthread_attr_init(Pthread.pthread_attr_t attr)
Initialize thread attribute *ATTR with default attributes (detachstate is
PTHREAD_CREATE_JOINABLE, scheduling policy is SCHED_OTHER, no user-provided stack).
|
static int |
pthread_attr_setaffinity_np(Pthread.pthread_attr_t attr,
org.graalvm.word.UnsignedWord cpusetsize,
org.graalvm.word.PointerBase cpuset)
Thread created with attribute ATTR will be limited to run only on the processors represented
in CPUSET.
|
static int |
pthread_attr_setdetachstate(Pthread.pthread_attr_t attr,
int detachstate)
Set detach state attribute.
|
static int |
pthread_attr_setguardsize(Pthread.pthread_attr_t attr,
org.graalvm.word.UnsignedWord guardsize)
Set the size of the guard area created for stack overflow protection.
|
static int |
pthread_attr_setinheritsched(Pthread.pthread_attr_t attr,
int inherit)
Set scheduling inheritance mode in *ATTR according to INHERIT.
|
static int |
pthread_attr_setschedparam(Pthread.pthread_attr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer param)
Set scheduling parameters (priority, etc) in *ATTR according to PARAM.
|
static int |
pthread_attr_setschedpolicy(Pthread.pthread_attr_t attr,
int policy)
Set scheduling policy in *ATTR according to POLICY.
|
static int |
pthread_attr_setscope(Pthread.pthread_attr_t attr,
int scope)
Set scheduling contention scope in *ATTR according to SCOPE.
|
static int |
pthread_attr_setstack(Pthread.pthread_attr_t attr,
org.graalvm.word.PointerBase stackaddr,
org.graalvm.word.UnsignedWord stacksize)
The following two interfaces are intended to replace the last two.
|
static int |
pthread_attr_setstackaddr(Pthread.pthread_attr_t attr,
org.graalvm.word.PointerBase stackaddr)
Set the starting address of the stack of the thread to be created.
|
static int |
pthread_attr_setstacksize(Pthread.pthread_attr_t attr,
org.graalvm.word.UnsignedWord stacksize)
Add information about the minimum stack size needed for the thread to be started.
|
static int |
PTHREAD_CANCEL_ASYNCHRONOUS() |
static int |
PTHREAD_CANCEL_DEFERRED() |
static int |
PTHREAD_CANCEL_DISABLE() |
static int |
PTHREAD_CANCEL_ENABLE() |
static int |
pthread_cancel(Pthread.pthread_t th)
Cancel THREAD immediately or at the next possibility.
|
static org.graalvm.word.WordBase |
PTHREAD_CANCELED() |
static int |
pthread_cond_broadcast(Pthread.pthread_cond_t cond)
Wake up all threads waiting for condition variables COND.
|
static int |
pthread_cond_destroy(Pthread.pthread_cond_t cond)
Destroy condition variable COND.
|
static int |
pthread_cond_init(Pthread.pthread_cond_t cond,
Pthread.pthread_condattr_t cond_attr)
Initialize condition variable COND using attributes ATTR, or use the default values if later
is NULL.
|
static int |
pthread_cond_signal(Pthread.pthread_cond_t cond)
Wake up one thread waiting for condition variable COND.
|
static int |
pthread_cond_timedwait_no_transition(Pthread.pthread_cond_t cond,
Pthread.pthread_mutex_t mutex,
Time.timespec abstime) |
static int |
pthread_cond_timedwait(Pthread.pthread_cond_t cond,
Pthread.pthread_mutex_t mutex,
Time.timespec abstime)
Wait for condition variable COND to be signaled or broadcast until ABSTIME.
|
static int |
pthread_cond_wait_no_transition(Pthread.pthread_cond_t cond,
Pthread.pthread_mutex_t mutex) |
static int |
pthread_cond_wait(Pthread.pthread_cond_t cond,
Pthread.pthread_mutex_t mutex)
Wait for condition variable COND to be signaled or broadcast.
|
static int |
pthread_condattr_destroy(Pthread.pthread_condattr_t attr)
Destroy condition variable attribute ATTR.
|
static int |
pthread_condattr_getclock(Pthread.pthread_condattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer clock_id)
Get the clock selected for the condition variable attribute ATTR.
|
static int |
pthread_condattr_getpshared(Pthread.pthread_condattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer pshared)
Get the process-shared flag of the condition variable attribute ATTR.
|
static int |
pthread_condattr_init(Pthread.pthread_condattr_t attr)
Initialize condition variable attribute ATTR.
|
static int |
pthread_condattr_setclock(Pthread.pthread_condattr_t attr,
int clock_id)
Set the clock selected for the condition variable attribute ATTR.
|
static int |
pthread_condattr_setpshared(Pthread.pthread_condattr_t attr,
int pshared)
Set the process-shared flag of the condition variable attribute ATTR.
|
static int |
PTHREAD_CREATE_DETACHED() |
static int |
pthread_create(Pthread.pthread_tPointer newthread,
Pthread.pthread_attr_t attr,
org.graalvm.word.WordBase start_routine,
org.graalvm.word.WordBase arg)
Create a new thread, starting with execution of START-ROUTINE getting passed ARG.
|
static int |
pthread_detach(Pthread.pthread_t th)
Indicate that the thread TH is never to be joined with PTHREAD_JOIN.
|
static int |
pthread_equal(Pthread.pthread_t thread1,
Pthread.pthread_t thread2)
Compare two thread identifiers.
|
static void |
pthread_exit(org.graalvm.word.PointerBase retval)
Terminate calling thread.
|
static int |
PTHREAD_EXPLICIT_SCHED() |
static int |
pthread_getaffinity_np(Pthread.pthread_t th,
org.graalvm.word.UnsignedWord cpusetsize,
org.graalvm.word.PointerBase cpuset)
Get bit set in CPUSET representing the processors TH can run on.
|
static int |
pthread_getattr_default_np(Pthread.pthread_attr_t attr)
Get the default attributes used by pthread_create in this process.
|
static int |
pthread_getattr_np(Pthread.pthread_t th,
Pthread.pthread_attr_t attr)
Initialize thread attribute *ATTR with attributes corresponding to the already running thread
TH.
|
static int |
pthread_getconcurrency()
Determine level of concurrency.
|
static int |
pthread_getcpuclockid(Pthread.pthread_t thread_id,
org.graalvm.word.PointerBase clock_id)
Get ID of CPU-time clock for thread THREAD_ID.
|
static int |
pthread_getschedparam(Pthread.pthread_t target_thread,
org.graalvm.nativeimage.c.type.CIntPointer policy,
org.graalvm.nativeimage.c.type.CIntPointer param)
Return in *POLICY and *PARAM the scheduling parameters for TARGET_THREAD.
|
static <T extends org.graalvm.word.WordBase> |
pthread_getspecific(int key)
Return current value of the thread-specific data slot identified by KEY.
|
static int |
PTHREAD_INHERIT_SCHED() |
static int |
pthread_join(Pthread.pthread_t th,
org.graalvm.nativeimage.c.type.WordPointer thread_return)
Make calling thread wait for termination of the thread TH.
|
static int |
pthread_key_create(org.graalvm.nativeimage.c.type.CIntPointer key,
org.graalvm.word.PointerBase destr_function)
Create a key value identifying a location in the thread-specific data area.
|
static int |
pthread_key_delete(int key)
Destroy KEY.
|
static int |
pthread_kill(Pthread.pthread_t thread,
Signal.SignalEnum sig) |
static int |
pthread_mutex_consistent_np(Pthread.pthread_mutex_t mutex) |
static int |
pthread_mutex_consistent(Pthread.pthread_mutex_t mutex)
Declare the state protected by MUTEX as consistent.
|
static int |
PTHREAD_MUTEX_DEFAULT() |
static int |
pthread_mutex_destroy(Pthread.pthread_mutex_t mutex)
Destroy a mutex.
|
static int |
PTHREAD_MUTEX_ERRORCHECK() |
static int |
pthread_mutex_getprioceiling(Pthread.pthread_mutex_t mutex,
org.graalvm.nativeimage.c.type.CIntPointer prioceiling)
Get the priority ceiling of MUTEX.
|
static int |
pthread_mutex_init(Pthread.pthread_mutex_t mutex,
Pthread.pthread_mutexattr_t mutexattr)
Initialize a mutex.
|
static int |
pthread_mutex_lock_no_transition(Pthread.pthread_mutex_t mutex)
Lock a mutex without a transition.
|
static int |
pthread_mutex_lock(Pthread.pthread_mutex_t mutex)
Lock a mutex.
|
static int |
PTHREAD_MUTEX_NORMAL() |
static int |
PTHREAD_MUTEX_RECURSIVE() |
static int |
pthread_mutex_setprioceiling(Pthread.pthread_mutex_t mutex,
int prioceiling,
org.graalvm.nativeimage.c.type.CIntPointer old_ceiling)
Set the priority ceiling of MUTEX to PRIOCEILING, return old priority ceiling value in
*OLD_CEILING.
|
static int |
pthread_mutex_timedlock(Pthread.pthread_mutex_t mutex,
Time.timespec abstime)
Wait until lock becomes available, or specified time passes.
|
static int |
pthread_mutex_trylock(Pthread.pthread_mutex_t mutex)
Lock a mutex if it is available.
|
static int |
pthread_mutex_unlock(Pthread.pthread_mutex_t mutex)
Unlock a mutex.
|
static int |
pthread_mutexattr_destroy(Pthread.pthread_mutexattr_t attr)
Destroy mutex attribute object ATTR.
|
static int |
pthread_mutexattr_getprioceiling(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer prioceiling)
Return in *PRIOCEILING the mutex prioceiling attribute in *ATTR.
|
static int |
pthread_mutexattr_getprotocol(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer protocol)
Return in *PROTOCOL the mutex protocol attribute in *ATTR.
|
static int |
pthread_mutexattr_getpshared(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer pshared)
Get the process-shared flag of the mutex attribute ATTR.
|
static int |
pthread_mutexattr_getrobust_np(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer robustness) |
static int |
pthread_mutexattr_getrobust(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer robustness)
Get the robustness flag of the mutex attribute ATTR.
|
static int |
pthread_mutexattr_gettype(Pthread.pthread_mutexattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer kind)
Return in *KIND the mutex kind attribute in *ATTR.
|
static int |
pthread_mutexattr_init(Pthread.pthread_mutexattr_t attr)
Initialize mutex attribute object ATTR with default attributes (kind is
PTHREAD_MUTEX_TIMED_NP).
|
static int |
pthread_mutexattr_setprioceiling(Pthread.pthread_mutexattr_t attr,
int prioceiling)
Set the mutex prioceiling attribute in *ATTR to PRIOCEILING.
|
static int |
pthread_mutexattr_setprotocol(Pthread.pthread_mutexattr_t attr,
int protocol)
Set the mutex protocol attribute in *ATTR to PROTOCOL (either PTHREAD_PRIO_NONE,
PTHREAD_PRIO_INHERIT, or PTHREAD_PRIO_PROTECT).
|
static int |
pthread_mutexattr_setpshared(Pthread.pthread_mutexattr_t attr,
int pshared)
Set the process-shared flag of the mutex attribute ATTR.
|
static int |
pthread_mutexattr_setrobust_np(Pthread.pthread_mutexattr_t attr,
int robustness) |
static int |
pthread_mutexattr_setrobust(Pthread.pthread_mutexattr_t attr,
int robustness)
Set the robustness flag of the mutex attribute ATTR.
|
static int |
pthread_mutexattr_settype(Pthread.pthread_mutexattr_t attr,
int kind)
Set the mutex kind attribute in *ATTR to KIND (either PTHREAD_MUTEX_NORMAL,
PTHREAD_MUTEX_RECURSIVE, PTHREAD_MUTEX_ERRORCHECK, or PTHREAD_MUTEX_DEFAULT).
|
static int |
pthread_once(org.graalvm.nativeimage.c.type.CIntPointer once_control,
org.graalvm.word.PointerBase init_routine)
Guarantee that the initialization function INIT_ROUTINE will be called only once, even if
pthread_once is executed several times with the same ONCE_CONTROL argument.
|
static int |
PTHREAD_PRIO_INHERIT() |
static int |
PTHREAD_PRIO_NONE() |
static int |
PTHREAD_PRIO_PROTECT() |
static int |
PTHREAD_PROCESS_PRIVATE() |
static int |
PTHREAD_PROCESS_SHARED() |
static int |
pthread_rwlock_destroy(Pthread.pthread_rwlock_t rwlock)
Destroy read-write lock RWLOCK.
|
static int |
pthread_rwlock_init(Pthread.pthread_rwlock_t rwlock,
Pthread.pthread_rwlockattr_t attr)
Initialize read-write lock RWLOCK using attributes ATTR, or use the default values if later
is NULL.
|
static int |
pthread_rwlock_rdlock(Pthread.pthread_rwlock_t rwlock)
Acquire read lock for RWLOCK.
|
static int |
pthread_rwlock_timedrdlock(Pthread.pthread_rwlock_t rwlock,
Time.timespec abstime)
Try to acquire read lock for RWLOCK or return after specfied time.
|
static int |
pthread_rwlock_timedwrlock(Pthread.pthread_rwlock_t rwlock,
Time.timespec abstime)
Try to acquire write lock for RWLOCK or return after specfied time.
|
static int |
pthread_rwlock_tryrdlock(Pthread.pthread_rwlock_t rwlock)
Try to acquire read lock for RWLOCK.
|
static int |
pthread_rwlock_trywrlock(Pthread.pthread_rwlock_t rwlock)
Try to acquire write lock for RWLOCK.
|
static int |
pthread_rwlock_unlock(Pthread.pthread_rwlock_t rwlock)
Unlock RWLOCK.
|
static int |
pthread_rwlock_wrlock(Pthread.pthread_rwlock_t rwlock)
Acquire write lock for RWLOCK.
|
static int |
pthread_rwlockattr_destroy(Pthread.pthread_rwlockattr_t attr)
Destroy attribute object ATTR.
|
static int |
pthread_rwlockattr_getkind_np(Pthread.pthread_rwlockattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer pref)
Return current setting of reader/writer preference.
|
static int |
pthread_rwlockattr_getpshared(Pthread.pthread_rwlockattr_t attr,
org.graalvm.nativeimage.c.type.CIntPointer pshared)
Return current setting of process-shared attribute of ATTR in PSHARED.
|
static int |
pthread_rwlockattr_init(Pthread.pthread_rwlockattr_t attr)
Initialize attribute object ATTR with default values.
|
static int |
pthread_rwlockattr_setkind_np(Pthread.pthread_rwlockattr_t attr,
int pref)
Set reader/write preference.
|
static int |
pthread_rwlockattr_setpshared(Pthread.pthread_rwlockattr_t attr,
int pshared)
Set process-shared attribute of ATTR to PSHARED.
|
static int |
PTHREAD_SCOPE_PROCESS() |
static int |
PTHREAD_SCOPE_SYSTEM() |
static Pthread.pthread_t |
pthread_self()
Obtain the identifier of the current thread.
|
static int |
pthread_setaffinity_np(Pthread.pthread_t th,
org.graalvm.word.UnsignedWord cpusetsize,
org.graalvm.word.PointerBase cpuset)
Limit specified thread TH to run only on the processors represented in CPUSET.
|
static int |
pthread_setattr_default_np(Pthread.pthread_attr_t attr)
Set the default attributes to be used by pthread_create in this process.
|
static int |
pthread_setcancelstate(int state,
org.graalvm.nativeimage.c.type.CIntPointer oldstate)
Set cancelability state of current thread to STATE, returning old state in *OLDSTATE if
OLDSTATE is not NULL.
|
static int |
pthread_setcanceltype(int type,
org.graalvm.nativeimage.c.type.CIntPointer oldtype)
Set cancellation state of current thread to TYPE, returning the old type in *OLDTYPE if
OLDTYPE is not NULL.
|
static int |
pthread_setconcurrency(int level)
Set new concurrency level to LEVEL.
|
static int |
pthread_setschedparam(Pthread.pthread_t target_thread,
int policy,
org.graalvm.nativeimage.c.type.CIntPointer param)
Set the scheduling parameters for TARGET_THREAD according to POLICY and *PARAM.
|
static int |
pthread_setschedprio(Pthread.pthread_t target_thread,
int prio)
Set the scheduling priority for TARGET_THREAD.
|
static int |
pthread_setspecific(int key,
org.graalvm.word.WordBase pointer)
Store POINTER in the thread-specific data slot identified by KEY.
|
static int |
pthread_spin_destroy(org.graalvm.nativeimage.c.type.CIntPointer lock)
Destroy the spinlock LOCK.
|
static int |
pthread_spin_init(org.graalvm.nativeimage.c.type.CIntPointer lock,
int pshared)
Initialize the spinlock LOCK.
|
static int |
pthread_spin_lock(org.graalvm.nativeimage.c.type.CIntPointer lock)
Wait until spinlock LOCK is retrieved.
|
static int |
pthread_spin_trylock(org.graalvm.nativeimage.c.type.CIntPointer lock)
Try to lock spinlock LOCK.
|
static int |
pthread_spin_unlock(org.graalvm.nativeimage.c.type.CIntPointer lock)
Release spinlock LOCK.
|
static org.graalvm.word.UnsignedWord |
PTHREAD_STACK_MIN() |
static void |
pthread_testcancel()
Test for pending cancellation for the current thread and terminate the thread as per
pthread_exit(PTHREAD_CANCELED) if it has been cancelled.
|
static int |
pthread_timedjoin_np(Pthread.pthread_t th,
org.graalvm.nativeimage.c.type.WordPointer thread_return,
Time.timespec abstime)
Make calling thread wait for termination of the thread TH, but only until TIMEOUT.
|
static int |
pthread_tryjoin_np(Pthread.pthread_t th,
org.graalvm.nativeimage.c.type.WordPointer thread_return)
Check whether thread TH has terminated.
|
static int |
pthread_yield()
Yield the processor to another thread or process.
|
public static int PTHREAD_CREATE_DETACHED()
public static org.graalvm.word.UnsignedWord PTHREAD_STACK_MIN()
public static int PTHREAD_MUTEX_NORMAL()
public static int PTHREAD_MUTEX_RECURSIVE()
public static int PTHREAD_MUTEX_ERRORCHECK()
public static int PTHREAD_MUTEX_DEFAULT()
public static int PTHREAD_PRIO_NONE()
public static int PTHREAD_PRIO_INHERIT()
public static int PTHREAD_PRIO_PROTECT()
public static int PTHREAD_INHERIT_SCHED()
public static int PTHREAD_EXPLICIT_SCHED()
public static int PTHREAD_SCOPE_SYSTEM()
public static int PTHREAD_SCOPE_PROCESS()
public static int PTHREAD_PROCESS_PRIVATE()
public static int PTHREAD_PROCESS_SHARED()
public static int PTHREAD_CANCEL_ENABLE()
public static int PTHREAD_CANCEL_DISABLE()
public static int PTHREAD_CANCEL_DEFERRED()
public static int PTHREAD_CANCEL_ASYNCHRONOUS()
public static org.graalvm.word.WordBase PTHREAD_CANCELED()
public static int pthread_create(Pthread.pthread_tPointer newthread, Pthread.pthread_attr_t attr, org.graalvm.word.WordBase start_routine, org.graalvm.word.WordBase arg)
public static void pthread_exit(org.graalvm.word.PointerBase retval)
public static int pthread_join(Pthread.pthread_t th, org.graalvm.nativeimage.c.type.WordPointer thread_return)
public static int pthread_tryjoin_np(Pthread.pthread_t th, org.graalvm.nativeimage.c.type.WordPointer thread_return)
public static int pthread_timedjoin_np(Pthread.pthread_t th, org.graalvm.nativeimage.c.type.WordPointer thread_return, Time.timespec abstime)
public static int pthread_detach(Pthread.pthread_t th)
public static Pthread.pthread_t pthread_self()
public static int pthread_equal(Pthread.pthread_t thread1, Pthread.pthread_t thread2)
public static int pthread_attr_init(Pthread.pthread_attr_t attr)
public static int pthread_attr_destroy(Pthread.pthread_attr_t attr)
public static int pthread_attr_getdetachstate(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer detachstate)
public static int pthread_attr_setdetachstate(Pthread.pthread_attr_t attr, int detachstate)
public static int pthread_attr_getguardsize(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.WordPointer guardsize)
public static int pthread_attr_setguardsize(Pthread.pthread_attr_t attr, org.graalvm.word.UnsignedWord guardsize)
public static int pthread_attr_getschedparam(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer param)
public static int pthread_attr_setschedparam(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer param)
public static int pthread_attr_getschedpolicy(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer policy)
public static int pthread_attr_setschedpolicy(Pthread.pthread_attr_t attr, int policy)
public static int pthread_attr_getinheritsched(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer inherit)
public static int pthread_attr_setinheritsched(Pthread.pthread_attr_t attr, int inherit)
public static int pthread_attr_getscope(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.CIntPointer scope)
public static int pthread_attr_setscope(Pthread.pthread_attr_t attr, int scope)
public static int pthread_attr_getstackaddr(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.WordPointer stackaddr)
public static int pthread_attr_setstackaddr(Pthread.pthread_attr_t attr, org.graalvm.word.PointerBase stackaddr)
public static int pthread_attr_getstacksize(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.WordPointer stacksize)
public static int pthread_attr_setstacksize(Pthread.pthread_attr_t attr, org.graalvm.word.UnsignedWord stacksize)
public static int pthread_attr_getstack(Pthread.pthread_attr_t attr, org.graalvm.nativeimage.c.type.WordPointer stackaddr, org.graalvm.nativeimage.c.type.WordPointer stacksize)
public static int pthread_attr_setstack(Pthread.pthread_attr_t attr, org.graalvm.word.PointerBase stackaddr, org.graalvm.word.UnsignedWord stacksize)
public static int pthread_attr_setaffinity_np(Pthread.pthread_attr_t attr, org.graalvm.word.UnsignedWord cpusetsize, org.graalvm.word.PointerBase cpuset)
public static int pthread_attr_getaffinity_np(Pthread.pthread_attr_t attr, org.graalvm.word.UnsignedWord cpusetsize, org.graalvm.word.PointerBase cpuset)
public static int pthread_getattr_default_np(Pthread.pthread_attr_t attr)
public static int pthread_setattr_default_np(Pthread.pthread_attr_t attr)
public static int pthread_getattr_np(Pthread.pthread_t th, Pthread.pthread_attr_t attr)
public static int pthread_setschedparam(Pthread.pthread_t target_thread, int policy, org.graalvm.nativeimage.c.type.CIntPointer param)
public static int pthread_getschedparam(Pthread.pthread_t target_thread, org.graalvm.nativeimage.c.type.CIntPointer policy, org.graalvm.nativeimage.c.type.CIntPointer param)
public static int pthread_setschedprio(Pthread.pthread_t target_thread, int prio)
public static int pthread_getconcurrency()
public static int pthread_setconcurrency(int level)
public static int pthread_yield()
public static int pthread_setaffinity_np(Pthread.pthread_t th, org.graalvm.word.UnsignedWord cpusetsize, org.graalvm.word.PointerBase cpuset)
public static int pthread_getaffinity_np(Pthread.pthread_t th, org.graalvm.word.UnsignedWord cpusetsize, org.graalvm.word.PointerBase cpuset)
public static int pthread_once(org.graalvm.nativeimage.c.type.CIntPointer once_control,
org.graalvm.word.PointerBase init_routine)
public static int pthread_setcancelstate(int state,
org.graalvm.nativeimage.c.type.CIntPointer oldstate)
public static int pthread_setcanceltype(int type,
org.graalvm.nativeimage.c.type.CIntPointer oldtype)
public static int pthread_cancel(Pthread.pthread_t th)
public static void pthread_testcancel()
This method does not transition to C code because (a) I do not want a test for a safepoint if I return because I am probably in the midst of safepointing, and (b) I do not need a test for a safepoint if this call cancels this thread.
public static int pthread_mutex_init(Pthread.pthread_mutex_t mutex, Pthread.pthread_mutexattr_t mutexattr)
public static int pthread_mutex_destroy(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_trylock(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_lock(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_lock_no_transition(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_timedlock(Pthread.pthread_mutex_t mutex, Time.timespec abstime)
public static int pthread_mutex_unlock(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_getprioceiling(Pthread.pthread_mutex_t mutex, org.graalvm.nativeimage.c.type.CIntPointer prioceiling)
public static int pthread_mutex_setprioceiling(Pthread.pthread_mutex_t mutex, int prioceiling, org.graalvm.nativeimage.c.type.CIntPointer old_ceiling)
public static int pthread_mutex_consistent(Pthread.pthread_mutex_t mutex)
public static int pthread_mutex_consistent_np(Pthread.pthread_mutex_t mutex)
public static int pthread_mutexattr_init(Pthread.pthread_mutexattr_t attr)
public static int pthread_mutexattr_destroy(Pthread.pthread_mutexattr_t attr)
public static int pthread_mutexattr_getpshared(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer pshared)
public static int pthread_mutexattr_setpshared(Pthread.pthread_mutexattr_t attr, int pshared)
public static int pthread_mutexattr_gettype(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer kind)
public static int pthread_mutexattr_settype(Pthread.pthread_mutexattr_t attr, int kind)
public static int pthread_mutexattr_getprotocol(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer protocol)
public static int pthread_mutexattr_setprotocol(Pthread.pthread_mutexattr_t attr, int protocol)
public static int pthread_mutexattr_getprioceiling(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer prioceiling)
public static int pthread_mutexattr_setprioceiling(Pthread.pthread_mutexattr_t attr, int prioceiling)
public static int pthread_mutexattr_getrobust(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer robustness)
public static int pthread_mutexattr_getrobust_np(Pthread.pthread_mutexattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer robustness)
public static int pthread_mutexattr_setrobust(Pthread.pthread_mutexattr_t attr, int robustness)
public static int pthread_mutexattr_setrobust_np(Pthread.pthread_mutexattr_t attr, int robustness)
public static int pthread_rwlock_init(Pthread.pthread_rwlock_t rwlock, Pthread.pthread_rwlockattr_t attr)
public static int pthread_rwlock_destroy(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlock_rdlock(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlock_tryrdlock(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlock_timedrdlock(Pthread.pthread_rwlock_t rwlock, Time.timespec abstime)
public static int pthread_rwlock_wrlock(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlock_trywrlock(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlock_timedwrlock(Pthread.pthread_rwlock_t rwlock, Time.timespec abstime)
public static int pthread_rwlock_unlock(Pthread.pthread_rwlock_t rwlock)
public static int pthread_rwlockattr_init(Pthread.pthread_rwlockattr_t attr)
public static int pthread_rwlockattr_destroy(Pthread.pthread_rwlockattr_t attr)
public static int pthread_rwlockattr_getpshared(Pthread.pthread_rwlockattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer pshared)
public static int pthread_rwlockattr_setpshared(Pthread.pthread_rwlockattr_t attr, int pshared)
public static int pthread_rwlockattr_getkind_np(Pthread.pthread_rwlockattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer pref)
public static int pthread_rwlockattr_setkind_np(Pthread.pthread_rwlockattr_t attr, int pref)
public static int pthread_cond_init(Pthread.pthread_cond_t cond, Pthread.pthread_condattr_t cond_attr)
public static int pthread_cond_destroy(Pthread.pthread_cond_t cond)
public static int pthread_cond_signal(Pthread.pthread_cond_t cond)
public static int pthread_cond_broadcast(Pthread.pthread_cond_t cond)
public static int pthread_cond_wait(Pthread.pthread_cond_t cond, Pthread.pthread_mutex_t mutex)
public static int pthread_cond_wait_no_transition(Pthread.pthread_cond_t cond, Pthread.pthread_mutex_t mutex)
public static int pthread_cond_timedwait(Pthread.pthread_cond_t cond, Pthread.pthread_mutex_t mutex, Time.timespec abstime)
public static int pthread_cond_timedwait_no_transition(Pthread.pthread_cond_t cond, Pthread.pthread_mutex_t mutex, Time.timespec abstime)
public static int pthread_condattr_init(Pthread.pthread_condattr_t attr)
public static int pthread_condattr_destroy(Pthread.pthread_condattr_t attr)
public static int pthread_condattr_getpshared(Pthread.pthread_condattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer pshared)
public static int pthread_condattr_setpshared(Pthread.pthread_condattr_t attr, int pshared)
public static int pthread_condattr_getclock(Pthread.pthread_condattr_t attr, org.graalvm.nativeimage.c.type.CIntPointer clock_id)
public static int pthread_condattr_setclock(Pthread.pthread_condattr_t attr, int clock_id)
public static int pthread_spin_init(org.graalvm.nativeimage.c.type.CIntPointer lock,
int pshared)
public static int pthread_spin_destroy(org.graalvm.nativeimage.c.type.CIntPointer lock)
public static int pthread_spin_lock(org.graalvm.nativeimage.c.type.CIntPointer lock)
public static int pthread_spin_trylock(org.graalvm.nativeimage.c.type.CIntPointer lock)
public static int pthread_spin_unlock(org.graalvm.nativeimage.c.type.CIntPointer lock)
public static int pthread_key_create(org.graalvm.nativeimage.c.type.CIntPointer key,
org.graalvm.word.PointerBase destr_function)
public static int pthread_key_delete(int key)
public static <T extends org.graalvm.word.WordBase> T pthread_getspecific(int key)
public static int pthread_setspecific(int key,
org.graalvm.word.WordBase pointer)
public static int pthread_getcpuclockid(Pthread.pthread_t thread_id, org.graalvm.word.PointerBase clock_id)
public static int pthread_atfork(org.graalvm.word.PointerBase prepare,
org.graalvm.word.PointerBase parent,
org.graalvm.word.PointerBase child)
public static int pthread_kill(Pthread.pthread_t thread, Signal.SignalEnum sig)