Package org.gnome.glib
Class ThreadFunctions
java.lang.Object
io.github.jwharm.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
Modifier and TypeClassDescriptionstatic interface
Functional interface declaration of theCondBroadcastCallback
callback.static interface
Functional interface declaration of theCondFreeCallback
callback.static interface
Functional interface declaration of theCondNewCallback
callback.static interface
Functional interface declaration of theCondSignalCallback
callback.static interface
Functional interface declaration of theCondTimedWaitCallback
callback.static interface
Functional interface declaration of theCondWaitCallback
callback.static interface
Functional interface declaration of theMutexFreeCallback
callback.static interface
Functional interface declaration of theMutexLockCallback
callback.static interface
Functional interface declaration of theMutexNewCallback
callback.static interface
Functional interface declaration of theMutexTrylockCallback
callback.static interface
Functional interface declaration of theMutexUnlockCallback
callback.static interface
Functional interface declaration of thePrivateGetCallback
callback.static interface
Functional interface declaration of thePrivateNewCallback
callback.static interface
Functional interface declaration of thePrivateSetCallback
callback.static interface
Functional interface declaration of theThreadCreateCallback
callback.static interface
Functional interface declaration of theThreadEqualCallback
callback.static interface
Functional interface declaration of theThreadExitCallback
callback.static interface
Functional interface declaration of theThreadJoinCallback
callback.static interface
Functional interface declaration of theThreadSelfCallback
callback.static interface
Functional interface declaration of theThreadSetPriorityCallback
callback.static interface
Functional interface declaration of theThreadYieldCallback
callback. -
Constructor Summary
ConstructorDescriptionAllocate 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 MemoryLayout
The memory layout of the native struct.void
overrideCondBroadcast
(ThreadFunctions.CondBroadcastCallback condBroadcast, Arena _arena) Write a value in the fieldcond_broadcast
.void
overrideCondFree
(ThreadFunctions.CondFreeCallback condFree, Arena _arena) Write a value in the fieldcond_free
.void
overrideCondNew
(ThreadFunctions.CondNewCallback condNew, Arena _arena) Write a value in the fieldcond_new
.void
overrideCondSignal
(ThreadFunctions.CondSignalCallback condSignal, Arena _arena) Write a value in the fieldcond_signal
.void
overrideCondTimedWait
(ThreadFunctions.CondTimedWaitCallback condTimedWait, Arena _arena) Write a value in the fieldcond_timed_wait
.void
overrideCondWait
(ThreadFunctions.CondWaitCallback condWait, Arena _arena) Write a value in the fieldcond_wait
.void
overrideMutexFree
(ThreadFunctions.MutexFreeCallback mutexFree, Arena _arena) Write a value in the fieldmutex_free
.void
overrideMutexLock
(ThreadFunctions.MutexLockCallback mutexLock, Arena _arena) Write a value in the fieldmutex_lock
.void
overrideMutexNew
(ThreadFunctions.MutexNewCallback mutexNew, Arena _arena) Write a value in the fieldmutex_new
.void
overrideMutexTrylock
(ThreadFunctions.MutexTrylockCallback mutexTrylock, Arena _arena) Write a value in the fieldmutex_trylock
.void
overrideMutexUnlock
(ThreadFunctions.MutexUnlockCallback mutexUnlock, Arena _arena) Write a value in the fieldmutex_unlock
.void
overridePrivateGet
(ThreadFunctions.PrivateGetCallback privateGet, Arena _arena) Write a value in the fieldprivate_get
.void
overridePrivateNew
(ThreadFunctions.PrivateNewCallback privateNew, Arena _arena) Write a value in the fieldprivate_new
.void
overridePrivateSet
(ThreadFunctions.PrivateSetCallback privateSet, Arena _arena) Write a value in the fieldprivate_set
.void
overrideThreadCreate
(ThreadFunctions.ThreadCreateCallback threadCreate, Arena _arena) Write a value in the fieldthread_create
.void
overrideThreadEqual
(ThreadFunctions.ThreadEqualCallback threadEqual, Arena _arena) Write a value in the fieldthread_equal
.void
overrideThreadExit
(ThreadFunctions.ThreadExitCallback threadExit, Arena _arena) Write a value in the fieldthread_exit
.void
overrideThreadJoin
(ThreadFunctions.ThreadJoinCallback threadJoin, Arena _arena) Write a value in the fieldthread_join
.void
overrideThreadSelf
(ThreadFunctions.ThreadSelfCallback threadSelf, Arena _arena) Write a value in the fieldthread_self
.void
overrideThreadSetPriority
(ThreadFunctions.ThreadSetPriorityCallback threadSetPriority, Arena _arena) Write a value in the fieldthread_set_priority
.void
overrideThreadYield
(ThreadFunctions.ThreadYieldCallback threadYield, Arena _arena) Write a value in the fieldthread_yield
.Methods inherited from class io.github.jwharm.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
-