Package org.gnome.glib
Class ThreadFunctions
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.glib.ThreadFunctions
- All Implemented Interfaces:
Proxy
This function table is no longer used by g_thread_init()
to initialize the thread system.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceFunctional interface declaration of theCondBroadcastCallbackcallback.static interfaceFunctional interface declaration of theCondFreeCallbackcallback.static interfaceFunctional interface declaration of theCondNewCallbackcallback.static interfaceFunctional interface declaration of theCondSignalCallbackcallback.static interfaceFunctional interface declaration of theCondTimedWaitCallbackcallback.static interfaceFunctional interface declaration of theCondWaitCallbackcallback.static interfaceFunctional interface declaration of theMutexFreeCallbackcallback.static interfaceFunctional interface declaration of theMutexLockCallbackcallback.static interfaceFunctional interface declaration of theMutexNewCallbackcallback.static interfaceFunctional interface declaration of theMutexTrylockCallbackcallback.static interfaceFunctional interface declaration of theMutexUnlockCallbackcallback.static interfaceFunctional interface declaration of thePrivateGetCallbackcallback.static interfaceFunctional interface declaration of thePrivateNewCallbackcallback.static interfaceFunctional interface declaration of thePrivateSetCallbackcallback.static interfaceFunctional interface declaration of theThreadCreateCallbackcallback.static interfaceFunctional interface declaration of theThreadEqualCallbackcallback.static interfaceFunctional interface declaration of theThreadExitCallbackcallback.static interfaceFunctional interface declaration of theThreadJoinCallbackcallback.static interfaceFunctional interface declaration of theThreadSelfCallbackcallback.static interfaceFunctional interface declaration of theThreadSetPriorityCallbackcallback.static interfaceFunctional interface declaration of theThreadYieldCallbackcallback. -
Constructor Summary
ConstructorsConstructorDescriptionAllocate a new ThreadFunctions.ThreadFunctions(Arena arena) Allocate a new ThreadFunctions.ThreadFunctions(MemorySegment address) Create a ThreadFunctions proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionstatic MemoryLayoutThe memory layout of the native struct.voidoverrideCondBroadcast(ThreadFunctions.CondBroadcastCallback condBroadcast, Arena _arena) Write a value in the fieldcond_broadcast.voidoverrideCondFree(ThreadFunctions.CondFreeCallback condFree, Arena _arena) Write a value in the fieldcond_free.voidoverrideCondNew(ThreadFunctions.CondNewCallback condNew, Arena _arena) Write a value in the fieldcond_new.voidoverrideCondSignal(ThreadFunctions.CondSignalCallback condSignal, Arena _arena) Write a value in the fieldcond_signal.voidoverrideCondTimedWait(ThreadFunctions.CondTimedWaitCallback condTimedWait, Arena _arena) Write a value in the fieldcond_timed_wait.voidoverrideCondWait(ThreadFunctions.CondWaitCallback condWait, Arena _arena) Write a value in the fieldcond_wait.voidoverrideMutexFree(ThreadFunctions.MutexFreeCallback mutexFree, Arena _arena) Write a value in the fieldmutex_free.voidoverrideMutexLock(ThreadFunctions.MutexLockCallback mutexLock, Arena _arena) Write a value in the fieldmutex_lock.voidoverrideMutexNew(ThreadFunctions.MutexNewCallback mutexNew, Arena _arena) Write a value in the fieldmutex_new.voidoverrideMutexTrylock(ThreadFunctions.MutexTrylockCallback mutexTrylock, Arena _arena) Write a value in the fieldmutex_trylock.voidoverrideMutexUnlock(ThreadFunctions.MutexUnlockCallback mutexUnlock, Arena _arena) Write a value in the fieldmutex_unlock.voidoverridePrivateGet(ThreadFunctions.PrivateGetCallback privateGet, Arena _arena) Write a value in the fieldprivate_get.voidoverridePrivateNew(ThreadFunctions.PrivateNewCallback privateNew, Arena _arena) Write a value in the fieldprivate_new.voidoverridePrivateSet(ThreadFunctions.PrivateSetCallback privateSet, Arena _arena) Write a value in the fieldprivate_set.voidoverrideThreadCreate(ThreadFunctions.ThreadCreateCallback threadCreate, Arena _arena) Write a value in the fieldthread_create.voidoverrideThreadEqual(ThreadFunctions.ThreadEqualCallback threadEqual, Arena _arena) Write a value in the fieldthread_equal.voidoverrideThreadExit(ThreadFunctions.ThreadExitCallback threadExit, Arena _arena) Write a value in the fieldthread_exit.voidoverrideThreadJoin(ThreadFunctions.ThreadJoinCallback threadJoin, Arena _arena) Write a value in the fieldthread_join.voidoverrideThreadSelf(ThreadFunctions.ThreadSelfCallback threadSelf, Arena _arena) Write a value in the fieldthread_self.voidoverrideThreadSetPriority(ThreadFunctions.ThreadSetPriorityCallback threadSetPriority, Arena _arena) Write a value in the fieldthread_set_priority.voidoverrideThreadYield(ThreadFunctions.ThreadYieldCallback threadYield, Arena _arena) Write a value in the fieldthread_yield.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ThreadFunctions
Create a ThreadFunctions proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
ThreadFunctions
Allocate a new ThreadFunctions.- Parameters:
arena- to control the memory allocation scope
-
ThreadFunctions
public ThreadFunctions()Allocate a new ThreadFunctions. The memory is allocated withArena.ofAuto().
-
-
Method Details
-
getMemoryLayout
The memory layout of the native struct.- Returns:
- the memory layout
-
overrideMutexNew
Write a value in the fieldmutex_new.- Parameters:
mutexNew- The new value for the fieldmutex_new_arena- to control the memory allocation scope
-
overrideMutexLock
Write a value in the fieldmutex_lock.- Parameters:
mutexLock- The new value for the fieldmutex_lock_arena- to control the memory allocation scope
-
overrideMutexTrylock
Write a value in the fieldmutex_trylock.- Parameters:
mutexTrylock- The new value for the fieldmutex_trylock_arena- to control the memory allocation scope
-
overrideMutexUnlock
Write a value in the fieldmutex_unlock.- Parameters:
mutexUnlock- The new value for the fieldmutex_unlock_arena- to control the memory allocation scope
-
overrideMutexFree
Write a value in the fieldmutex_free.- Parameters:
mutexFree- The new value for the fieldmutex_free_arena- to control the memory allocation scope
-
overrideCondNew
Write a value in the fieldcond_new.- Parameters:
condNew- The new value for the fieldcond_new_arena- to control the memory allocation scope
-
overrideCondSignal
Write a value in the fieldcond_signal.- Parameters:
condSignal- The new value for the fieldcond_signal_arena- to control the memory allocation scope
-
overrideCondBroadcast
public void overrideCondBroadcast(ThreadFunctions.CondBroadcastCallback condBroadcast, Arena _arena) Write a value in the fieldcond_broadcast.- Parameters:
condBroadcast- The new value for the fieldcond_broadcast_arena- to control the memory allocation scope
-
overrideCondWait
Write a value in the fieldcond_wait.- Parameters:
condWait- The new value for the fieldcond_wait_arena- to control the memory allocation scope
-
overrideCondTimedWait
public void overrideCondTimedWait(ThreadFunctions.CondTimedWaitCallback condTimedWait, Arena _arena) Write a value in the fieldcond_timed_wait.- Parameters:
condTimedWait- The new value for the fieldcond_timed_wait_arena- to control the memory allocation scope
-
overrideCondFree
Write a value in the fieldcond_free.- Parameters:
condFree- The new value for the fieldcond_free_arena- to control the memory allocation scope
-
overridePrivateNew
Write a value in the fieldprivate_new.- Parameters:
privateNew- The new value for the fieldprivate_new_arena- to control the memory allocation scope
-
overridePrivateGet
Write a value in the fieldprivate_get.- Parameters:
privateGet- The new value for the fieldprivate_get_arena- to control the memory allocation scope
-
overridePrivateSet
Write a value in the fieldprivate_set.- Parameters:
privateSet- The new value for the fieldprivate_set_arena- to control the memory allocation scope
-
overrideThreadCreate
Write a value in the fieldthread_create.- Parameters:
threadCreate- The new value for the fieldthread_create_arena- to control the memory allocation scope
-
overrideThreadYield
Write a value in the fieldthread_yield.- Parameters:
threadYield- The new value for the fieldthread_yield_arena- to control the memory allocation scope
-
overrideThreadJoin
Write a value in the fieldthread_join.- Parameters:
threadJoin- The new value for the fieldthread_join_arena- to control the memory allocation scope
-
overrideThreadExit
Write a value in the fieldthread_exit.- Parameters:
threadExit- The new value for the fieldthread_exit_arena- to control the memory allocation scope
-
overrideThreadSetPriority
public void overrideThreadSetPriority(ThreadFunctions.ThreadSetPriorityCallback threadSetPriority, Arena _arena) Write a value in the fieldthread_set_priority.- Parameters:
threadSetPriority- The new value for the fieldthread_set_priority_arena- to control the memory allocation scope
-
overrideThreadSelf
Write a value in the fieldthread_self.- Parameters:
threadSelf- The new value for the fieldthread_self_arena- to control the memory allocation scope
-
overrideThreadEqual
Write a value in the fieldthread_equal.- Parameters:
threadEqual- The new value for the fieldthread_equal_arena- to control the memory allocation scope
-