These functions provide a portable thread API that is loosely based on the POSIX standard 1003.1 (more commonly called Pthreads). This API is supported on all operating systems with kernel-level threads.
The TutThread* functions manipulate threads.
TutThreadCreate create a thread
TutThreadCreateVa create a thread (va_list
version)
T_THREAD TutThreadCreateVa(thread_func
,thread_arg
,var_arg_list
) T_THREAD_FUNCthread_func
; T_PTRthread_arg
; va_listvar_arg_list
;
TutThreadDetach allow a thread to run to completion without requiring the operating system to remember its exit code
T_THREAD TutThreadDetach(thread_func
,thread_arg
,var_arg_list
) T_THREAD_FUNCthread_func
; T_PTRthread_arg
; va_listvar_arg_list
;
TutThreadEqual compare two thread handles for equality
TutThreadExit exit from a thread
TutThreadSelf return the T_THREAD
of the current thread
TutThreadWait wait for another thread to exit
The TutMutex* functions manipulate mutual exclusion synchronization (mutex) objects.
TutMutexCreate create a mutex object
TutMutexCreateFast create a high-performance mutex object
TutMutexDestroy destroy a mutex object
TutMutexLock lock a mutex object
TutMutexLockFast lock a high-performance mutex object
TutMutexUnlock unlock a mutex object
The TutCond* functions manipulate condition variable synchronization objects.
TutCondCreate create a condition variable
TutCondDestroy destroy a condition variable
TutCondWait wait to be awakened by a condition variable
TutCondWakeAll wake all threads waiting for a condition variable
The TutRwMutex* functions manipulate read and write mutex synchronization objects.
TutRwMutexCreate create a multiple-reader/single-writer mutex
TutRwMutexDestroy destroy a multiple-reader/single-writer mutex
TutRwMutexGetReadQuota determine the current simultaneous reader quota of a read or write mutex
T_BOOL TutRwMutexGetReadQuota(rw_mutex
,read_quota_return
) T_RW_MUTEXrw_mutex
; T_INT4 *read_quota_return
;
TutRwMutexReadLock read-lock a read or write mutex
TutRwMutexReadLocked check to see if a read or write mutex is read-locked by the current thread
TutRwMutexSetReadQuota set the simultaneous reader quota of a read or write mutex
TutRwMutexUnlock release a lock on a read or write mutex
TutRwMutexUpgradeLock upgrade a read-lock on a read or write mutex to a write-lock
TutRwMutexWriteLock write-lock a read or write mutex
TutRwMutexWriteLocked check to see if a read or write mutex is write-locked by the current thread
The TutTsd* functions manipulate thread-specific data.
TutTsdGetValue determine the value of a thread-specific data key
TutTsdKeyCreate create a thread-specific data key
T_BOOL TutTsdKeyCreate(key_return
,destructor_func
) T_TSD_KEY *key_return
; T_TSD_KEY_DESTRUCTOR_FUNCdestructor_func
;
TutTsdKeyDestroy destroy a thread-specific data key
TutTsdSetValue set the value of a thread-specific data key
TIBCO SmartSockets™ API Quick Reference Software Release 6.8, July 2006 Copyright © TIBCO Software Inc. All rights reserved www.tibco.com |