Clases |
| struct | ptw32_thread_t_ |
| struct | pthread_attr_t_ |
| struct | sem_t_ |
| struct | pthread_mutex_t_ |
| struct | pthread_mutexattr_t_ |
| struct | pthread_spinlock_t_ |
| struct | pthread_barrier_t_ |
| struct | pthread_barrierattr_t_ |
| struct | pthread_key_t_ |
| struct | ThreadParms |
| struct | pthread_cond_t_ |
| struct | pthread_condattr_t_ |
| struct | pthread_rwlock_t_ |
| struct | pthread_rwlockattr_t_ |
| struct | ptw32_mcs_node_t_ |
| struct | ThreadKeyAssoc |
'defines' |
| #define | _WIN32_WINNT 0x400 |
| #define | ETIMEDOUT 10060 |
| #define | INLINE |
| #define | PTW32_INTERLOCKED_LONG PVOID |
| #define | PTW32_INTERLOCKED_LPLONG PVOID* |
| #define | int64_t _int64 |
| #define | PTW32_ATTR_VALID ((unsigned long) 0xC4C0FFEE) |
| #define | PTW32_OBJECT_AUTO_INIT ((void *) -1) |
| #define | PTW32_OBJECT_INVALID NULL |
| #define | PTW32_SPIN_UNLOCKED (1) |
| #define | PTW32_SPIN_LOCKED (2) |
| #define | PTW32_SPIN_USE_MUTEX (3) |
| #define | PTW32_RWLOCK_MAGIC 0xfacade2 |
| #define | PTW32_EPS_EXIT (1) |
| #define | PTW32_EPS_CANCEL (2) |
| #define | PTW32_MAX(a, b) ((a)<(b)?(b):(a)) |
| #define | PTW32_MIN(a, b) ((a)>(b)?(b):(a)) |
| #define | PTW32_THREAD_REUSE_EMPTY ((ptw32_thread_t *) 1) |
| #define | PTW32_INTERLOCKED_COMPARE_EXCHANGE ptw32_interlocked_compare_exchange |
| #define | PTW32_INTERLOCKED_EXCHANGE InterlockedExchange |
'typedefs' |
| typedef struct ptw32_thread_t_ | ptw32_thread_t |
| typedef struct ThreadParms | ThreadParms |
| typedef struct ThreadKeyAssoc | ThreadKeyAssoc |
| typedef struct ptw32_mcs_node_t_ | ptw32_mcs_local_node_t |
| typedef struct ptw32_mcs_node_t_ * | ptw32_mcs_lock_t |
Enumeraciones |
| enum | PThreadState {
PThreadStateInitial = 0,
PThreadStateRunning,
PThreadStateSuspended,
PThreadStateCancelPending,
PThreadStateCanceling,
PThreadStateException,
PThreadStateLast
} |
Funciones |
| | PTW32_INTERLOCKED_LONG (WINAPI *ptw32_interlocked_compare_exchange)(PTW32_INTERLOCKED_LPLONG |
| int | ptw32_is_attr (const pthread_attr_t *attr) |
| int | ptw32_cond_check_need_init (pthread_cond_t *cond) |
| int | ptw32_mutex_check_need_init (pthread_mutex_t *mutex) |
| int | ptw32_rwlock_check_need_init (pthread_rwlock_t *rwlock) |
| PTW32_INTERLOCKED_LONG WINAPI | ptw32_InterlockedCompareExchange (PTW32_INTERLOCKED_LPLONG location, PTW32_INTERLOCKED_LONG value, PTW32_INTERLOCKED_LONG comparand) |
| LONG WINAPI | ptw32_InterlockedExchange (LPLONG location, LONG value) |
| DWORD | ptw32_RegisterCancelation (PAPCFUNC callback, HANDLE threadH, DWORD callback_arg) |
| int | ptw32_processInitialize (void) |
| void | ptw32_processTerminate (void) |
| void | ptw32_threadDestroy (pthread_t tid) |
| void | ptw32_pop_cleanup_all (int execute) |
| pthread_t | ptw32_new (void) |
| pthread_t | ptw32_threadReusePop (void) |
| void | ptw32_threadReusePush (pthread_t thread) |
| int | ptw32_getprocessors (int *count) |
| int | ptw32_setthreadpriority (pthread_t thread, int policy, int priority) |
| void | ptw32_rwlock_cancelwrwait (void *arg) |
| unsigned __stdcall | ptw32_threadStart (void *vthreadParms) |
| void | ptw32_callUserDestroyRoutines (pthread_t thread) |
| int | ptw32_tkAssocCreate (ptw32_thread_t *thread, pthread_key_t key) |
| void | ptw32_tkAssocDestroy (ThreadKeyAssoc *assoc) |
| int | ptw32_semwait (sem_t *sem) |
| DWORD | ptw32_relmillisecs (const struct timespec *abstime) |
| void | ptw32_mcs_lock_acquire (ptw32_mcs_lock_t *lock, ptw32_mcs_local_node_t *node) |
| void | ptw32_mcs_lock_release (ptw32_mcs_local_node_t *node) |
| void | ptw32_throw (DWORD exception) |
Variables |
| | PTW32_INTERLOCKED_LONG |
| DWORD(* | ptw32_register_cancelation )(PAPCFUNC, HANDLE, DWORD) |
| int | ptw32_processInitialized |
| ptw32_thread_t * | ptw32_threadReuseTop |
| ptw32_thread_t * | ptw32_threadReuseBottom |
| pthread_key_t | ptw32_selfThreadKey |
| pthread_key_t | ptw32_cleanupKey |
| pthread_cond_t | ptw32_cond_list_head |
| pthread_cond_t | ptw32_cond_list_tail |
| int | ptw32_mutex_default_kind |
| int | ptw32_concurrency |
| int | ptw32_features |
| BOOL | ptw32_smp_system |
| CRITICAL_SECTION | ptw32_thread_reuse_lock |
| CRITICAL_SECTION | ptw32_mutex_test_init_lock |
| CRITICAL_SECTION | ptw32_cond_list_lock |
| CRITICAL_SECTION | ptw32_cond_test_init_lock |
| CRITICAL_SECTION | ptw32_rwlock_test_init_lock |
| CRITICAL_SECTION | ptw32_spinlock_test_init_lock |