| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
#if !defined( _LIBCTHREADS_INTERNAL_TYPES_H ) |
| 23 |
#define _LIBCTHREADS_INTERNAL_TYPES_H |
| 24 |
|
| 25 |
#include <common.h> |
| 26 |
#include <types.h> |
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
#if defined( HAVE_LOCAL_LIBCTHREADS ) && defined( HAVE_MULTI_THREAD_SUPPORT ) |
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
#if defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) |
| 37 |
typedef struct libcthreads_condition {} libcthreads_condition_t; |
| 38 |
typedef struct libcthreads_lock {} libcthreads_lock_t; |
| 39 |
typedef struct libcthreads_mutex {} libcthreads_mutex_t; |
| 40 |
typedef struct libcthreads_queue {} libcthreads_queue_t; |
| 41 |
typedef struct libcthreads_read_write_lock {} libcthreads_read_write_lock_t; |
| 42 |
typedef struct libcthreads_repeating_thread {} libcthreads_repeating_thread_t; |
| 43 |
typedef struct libcthreads_thread {} libcthreads_thread_t; |
| 44 |
typedef struct libcthreads_thread_attributes {} libcthreads_thread_attributes_t; |
| 45 |
typedef struct libcthreads_thread_pool {} libcthreads_thread_pool_t; |
| 46 |
|
| 47 |
#else |
| 48 |
typedef intptr_t libcthreads_condition_t; |
| 49 |
typedef intptr_t libcthreads_lock_t; |
| 50 |
typedef intptr_t libcthreads_mutex_t; |
| 51 |
typedef intptr_t libcthreads_queue_t; |
| 52 |
typedef intptr_t libcthreads_read_write_lock_t; |
| 53 |
typedef intptr_t libcthreads_repeating_thread_t; |
| 54 |
typedef intptr_t libcthreads_thread_t; |
| 55 |
typedef intptr_t libcthreads_thread_attributes_t; |
| 56 |
typedef intptr_t libcthreads_thread_pool_t; |
| 57 |
|
| 58 |
#endif |
| 59 |
|
| 60 |
#endif |
| 61 |
|
| 62 |
#endif |
| 63 |
|