Harlequin RIP SDK

Header file defining the Threads interface. More...

#include <pthread.h>
#include <errno.h>

Data Structures

struct  sw_pthread_api_20171022
 Thread API version sw_pthread_api_20171022 is a strict superset of the functionality in the sw_pthread_api_20111021 version of the thread interface. This is deliberate choice, and the layout of the 20111021 version is a prefix of the 20171022 version so a pointer to the latter may be used where a instance of the former is required. More...
 
struct  sw_pthread_api_20111021
 Thread API version sw_pthread_api_20111021 is a strict superset of the functionality in the sw_pthread_api_20071026 version of the thread interface. This is deliberate choice, and the layout of the 20071026 version is a prefix of the 20111021 version so a pointer to the latter may be used where a instance of the former is required. More...
 
struct  sw_pthread_api_20071026
 Thread API version sw_pthread_api_20071026. More...
 

Macros

#define pthread_attr_init   pthread_api->attr_init
 Initialize an attribute structure to pass non-default attributes to pthread_create(). More...
 
#define pthread_attr_destroy   pthread_api->attr_destroy
 Destroy an attribute structure previously initialized with pthread_attr_init(). More...
 
#define pthread_attr_setdetachstate   pthread_api->attr_setdetachstate
 Set the detach state of a thread attributes structure. More...
 
#define pthread_create   pthread_api->create
 Create a thread. More...
 
#define pthread_join   pthread_api->join
 Wait until a thread has been terminated. More...
 
#define pthread_mutexattr_init   pthread_api->mutexattr_init
 Initialize a mutex attribute structure to pass non-default attributes to pthread_mutex_init(). More...
 
#define pthread_mutexattr_destroy   pthread_api->mutexattr_destroy
 Destroy an attribute structure previously initialized with pthread_mutexattr_init(). More...
 
#define pthread_mutexattr_getpshared   pthread_api->mutexattr_getpshared
 Return the value of the process-shared attribute of the mutex attribute. More...
 
#define pthread_mutexattr_setpshared   pthread_api->mutexattr_setpshared
 Set a mutex attribute's process-shared attribute. More...
 
#define pthread_mutexattr_settype   pthread_api->mutexattr_settype
 Set a mutex attribute type. More...
 
#define pthread_mutexattr_gettype   pthread_api->mutexattr_gettype
 Return the value of the type attribute of the mutex attribute. More...
 
#define pthread_mutex_init   pthread_api->mutex_init
 Initialize a mutex object. More...
 
#define pthread_mutex_destroy   pthread_api->mutex_destroy
 Destroy a mutex object. More...
 
#define pthread_mutex_lock   pthread_api->mutex_lock
 Lock a mutex object. More...
 
#define pthread_mutex_trylock   pthread_api->mutex_trylock
 Try to lock a mutex object. More...
 
#define pthread_mutex_unlock   pthread_api->mutex_unlock
 Unlock a mutex object. More...
 
#define pthread_cond_init   pthread_api->cond_init
 Initialize a condition object. More...
 
#define pthread_cond_destroy   pthread_api->cond_destroy
 Destroy a condition object. More...
 
#define pthread_cond_wait   pthread_api->cond_wait
 Wait for a condition object to be signalled. More...
 
#define pthread_cond_timedwait   pthread_api->cond_timedwait
 Wait for a condition object to be signalled. More...
 
#define pthread_cond_signal   pthread_api->cond_signal
 Unblock at least one thread waiting on a condition object. More...
 
#define pthread_cond_broadcast   pthread_api->cond_broadcast
 Unblock all threads waiting on a condition object. More...
 
#define pthread_key_create   pthread_api->key_create
 Create a thread-local storage key. More...
 
#define pthread_key_delete   pthread_api->key_delete
 Delete a thread-local storage key previously created with pthread_key_create(). More...
 
#define pthread_setspecific   pthread_api->setspecific
 Set the value of a specified thread-local key for the current thread. More...
 
#define pthread_getspecific   pthread_api->getspecific
 Get the value of a specified thread-local key for the current thread. More...
 
#define set_thread_name   pthread_api->set_thread_name
 Set a thread name for debugging. More...
 
#define get_time_from_now   pthread_api->time_from_now
 Get the representation of time at given offset in the future from the current time, as a time since the epoch. All times are in microsecond units. More...
 
#define hqtime_to_timespec   pthread_api->hqtime_to_timespec
 Convert an HqU32x2 created by get_time_from_now() to a struct timespec suitable for pthread_cond_timedwait(). More...
 

Functions

HqBool load_pthreads_dll (const char *dll_name, char **error_string)
 Load the pthreads library. More...
 
HqBool unload_pthreads_dll (void)
 Unload the pthreads library. More...
 

Detailed Description

Header file defining the Threads interface.

Copyright (C) 2023 Global Graphics Software Ltd. All rights reserved. This source code contains the confidential and trade secret information of Global Graphics Software Ltd. It may not be used, copied or distributed for any reason except as set forth in the applicable Global Graphics license agreement.