summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>2000-08-17 10:18:36 +0000
committerrpj <rpj>2000-08-17 10:18:36 +0000
commita366b6d8c2e6debf247c82af3d41aa2483711c52 (patch)
treee2a2f6785897a8789f88403e99d4f03dce301607 /pthread.h
parent951895c3aa196e90d4a5ecefe337d8773b8d33b7 (diff)
2000-08-17 Ross Johnson <rpj@special.ise.canberra.edu.au>
* All applicable: Change _pthread_ prefix to ptw32_ prefix to remove leading underscores from private library identifiers (single and double leading underscores are reserved in the ANSI C standard for compiler implementations).
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h18
1 files changed, 9 insertions, 9 deletions
diff --git a/pthread.h b/pthread.h
index ddfd601..a853191 100644
--- a/pthread.h
+++ b/pthread.h
@@ -581,14 +581,14 @@ struct sched_param {
* C++ and C built versions will not.
*/
-typedef struct _pthread_cleanup_t _pthread_cleanup_t;
+typedef struct ptw32_cleanup_t ptw32_cleanup_t;
-struct _pthread_cleanup_t
+struct ptw32_cleanup_t
{
void (*routine) (void *);
void *arg;
#if !defined(_MSC_VER) && !defined(__cplusplus)
- _pthread_cleanup_t *prev;
+ ptw32_leanup_t *prev;
#endif /* !_MSC_VER && ! __cplusplus */
};
@@ -599,7 +599,7 @@ struct _pthread_cleanup_t
#define pthread_cleanup_push( _rout, _arg ) \
{ \
- _pthread_cleanup_t _cleanup; \
+ ptw32_cleanup_t _cleanup; \
\
_cleanup.routine = (_rout); \
_cleanup.arg = (_arg); \
@@ -627,7 +627,7 @@ struct _pthread_cleanup_t
#define pthread_cleanup_push( _rout, _arg ) \
{ \
- _pthread_cleanup_t _cleanup; \
+ ptw32_cleanup_t _cleanup; \
\
pthread_push_cleanup( &_cleanup, (_rout), (_arg) ); \
@@ -787,9 +787,9 @@ void pthread_testcancel (void);
int pthread_once (pthread_once_t * once_control,
void (*init_routine) (void));
-_pthread_cleanup_t *pthread_pop_cleanup (int execute);
+ptw32_cleanup_t *pthread_pop_cleanup (int execute);
-void pthread_push_cleanup (_pthread_cleanup_t * cleanup,
+void pthread_push_cleanup (ptw32_cleanup_t * cleanup,
void (*routine) (void *),
void *arg);
@@ -970,7 +970,7 @@ int * _errno( void );
/*
* Get internal SEH tag
*/
-DWORD _pthread_get_exception_services_code(void);
+DWORD ptw32_get_exception_services_code(void);
#if defined(_MSC_VER) && !defined(__cplusplus)
@@ -979,7 +979,7 @@ DWORD _pthread_get_exception_services_code(void);
* propagate our internal exceptions up to the library's internal handlers.
*/
#define __except( E ) \
- __except( ( GetExceptionCode() == _pthread_get_exception_services_code() ) \
+ __except( ( GetExceptionCode() == ptw32_get_exception_services_code() ) \
? EXCEPTION_CONTINUE_SEARCH : ( E ) )
#endif /* _MSC_VER && ! __cplusplus */