Apache Portable Runtime
Functions

Functions

apr_status_t apr_os_thread_get (apr_os_thread_t **thethd, apr_thread_t *thd)
 
apr_status_t apr_os_threadkey_get (apr_os_threadkey_t *thekey, apr_threadkey_t *key)
 
apr_status_t apr_os_thread_put (apr_thread_t **thd, apr_os_thread_t *thethd, apr_pool_t *cont)
 
apr_status_t apr_os_threadkey_put (apr_threadkey_t **key, apr_os_threadkey_t *thekey, apr_pool_t *cont)
 
apr_os_thread_t apr_os_thread_current (void)
 
int apr_os_thread_equal (apr_os_thread_t tid1, apr_os_thread_t tid2)
 

Detailed Description

Function Documentation

apr_os_thread_t apr_os_thread_current ( void  )

Get the thread ID

int apr_os_thread_equal ( apr_os_thread_t  tid1,
apr_os_thread_t  tid2 
)

Compare two thread id's

Parameters
tid11st Thread ID to compare
tid22nd Thread ID to compare
Returns
non-zero if the two threads are equal, zero otherwise
apr_status_t apr_os_thread_get ( apr_os_thread_t **  thethd,
apr_thread_t thd 
)

convert the thread to os specific type from apr type.

Parameters
thethdThe apr thread to convert
thdThe os specific thread we are converting to
apr_status_t apr_os_thread_put ( apr_thread_t **  thd,
apr_os_thread_t *  thethd,
apr_pool_t cont 
)

convert the thread from os specific type to apr type.

Parameters
thdThe apr thread we are converting to.
thethdThe os specific thread to convert
contThe pool to use if it is needed.
apr_status_t apr_os_threadkey_get ( apr_os_threadkey_t *  thekey,
apr_threadkey_t key 
)

convert the thread private memory key to os specific type from an apr type.

Parameters
thekeyThe apr handle we are converting from.
keyThe os specific handle we are converting to.
apr_status_t apr_os_threadkey_put ( apr_threadkey_t **  key,
apr_os_threadkey_t *  thekey,
apr_pool_t cont 
)

convert the thread private memory key from os specific type to apr type.

Parameters
keyThe apr handle we are converting to.
thekeyThe os specific handle to convert
contThe pool to use if it is needed.