libwget-thread(3) | wget2 | libwget-thread(3) |
libwget-thread
int wget_thread_mutex_init (wget_thread_mutex_t *mutex)
int wget_thread_mutex_destroy (wget_thread_mutex_t *mutex)
void wget_thread_mutex_lock (wget_thread_mutex_t mutex)
void wget_thread_mutex_unlock (wget_thread_mutex_t mutex)
int wget_thread_cond_init (wget_thread_cond_t *cond)
int wget_thread_cond_destroy (wget_thread_cond_t *cond)
int wget_thread_cond_signal (wget_thread_cond_t cond)
int wget_thread_cond_wait (wget_thread_cond_t cond, wget_thread_mutex_t
mutex, long long ms)
int wget_thread_start (wget_thread_t *thread, void
*(*start_routine)(void *), void *arg, G_GNUC_WGET_UNUSED int flags)
int wget_thread_cancel (G_GNUC_WGET_UNUSED wget_thread_t thread)
int wget_thread_kill (G_GNUC_WGET_UNUSED wget_thread_t thread,
G_GNUC_WGET_UNUSED int sig)
int wget_thread_join (wget_thread_t *thread)
wget_thread_id_t wget_thread_self (void)
bool wget_thread_support (void)
This is a wrapper around Gnulib's glthread functionality.
It currently supports Posix threads (pthreads), GNU Pth threads, Solaris threads and Windows threads.
Parameters:
Returns:
Initializes the mutex.
After usage, a call to wget_thread_mutex_destroy() frees the allocated resources.
Parameters:
Returns:
Free's the mutex and it's resources.
After calling this function, the mutex cannot be used any more.
Parameters:
Creates a lock on the mutex.
To unlock the mutex, call wget_thread_mutex_unlock().
Parameters:
Unlocks the mutex.
Parameters:
Returns:
Initializes the conditional cond.
After usage, a call to wget_thread_cond_destroy() frees the allocated resources.
Parameters:
Returns:
Free's the conditional cond and it's resources.
After calling this function, cond cannot be used any more.
Parameters:
Returns:
Wakes up one (random) thread that waits on the conditional.
Parameters:
Returns:
Waits for a condition with a max. timeout of ms milliseconds.
To wait forever use a timeout lower or equal then 0.
Parameters:
Returns:
Start start_routine as own thread with argument arg.
Parameters:
Returns:
Currently a no-op function, since it's not portable.
Parameters:
Returns:
Currently a no-op function, since it's not portable.
Parameters:
Returns:
Wait until the thread has been stopped.
This function just waits - to stop a thread you have take your own measurements.
Returns:
Returns:
Generated automatically by Doxygen for wget2 from the source code.
Thu May 17 2018 | Version 1.99.1 |