summaryrefslogtreecommitdiff
path: root/pthread.h
diff options
context:
space:
mode:
authorrpj <rpj>1999-02-08 21:19:53 +0000
committerrpj <rpj>1999-02-08 21:19:53 +0000
commit9e253ed18b58158600fe1b4eed306c11523e7a53 (patch)
tree7583ba194efd2f8c8b035866d0f63a36d7bbb216 /pthread.h
parent856068d292843ed7e8b3c49ecf55bd5f5c1b2368 (diff)
Fri Feb 5 13:42:30 1999 Ross Johnson <rpj@swan.canberra.edu.au>
* semaphore.c: Comment format changes. Wed Feb 3 13:04:44 1999 Ross Johnson <rpj@swan.canberra.edu.au> * cleanup.c: Rename _pthread_*_cleanup() to pthread_*_cleanup(). * pthread.def: Ditto. * pthread.h: Ditto. * pthread.def (pthread_cleanup_push): Remove from export list; the function is defined as a macro under all compilers. (pthread_cleanup_pop): Ditto. * pthread.h: Remove #if defined().
Diffstat (limited to 'pthread.h')
-rw-r--r--pthread.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/pthread.h b/pthread.h
index e0fc11f..415602c 100644
--- a/pthread.h
+++ b/pthread.h
@@ -710,10 +710,10 @@ struct _pthread_cleanup_t
{ \
_pthread_cleanup_t _cleanup; \
\
- _pthread_push_cleanup( &_cleanup, (_rout), (_arg) ); \
+ pthread_push_cleanup( &_cleanup, (_rout), (_arg) ); \
#define pthread_cleanup_pop( _execute ) \
- (void) _pthread_pop_cleanup( _execute ); \
+ (void) pthread_pop_cleanup( _execute ); \
}
#else /* !__cplusplus */
@@ -851,16 +851,6 @@ pthread_t pthread_self (void);
int pthread_cancel (pthread_t thread);
-#if !defined(__cplusplus) && !defined(_MSC_VER)
-
-_pthread_cleanup_t *_pthread_pop_cleanup (int execute);
-
-void _pthread_push_cleanup (_pthread_cleanup_t * cleanup,
- void (*routine) (void *),
- void *arg);
-
-#endif /* !__cplusplus && ! _MSC_VER */
-
int pthread_setcancelstate (int state,
int *oldstate);
@@ -872,6 +862,12 @@ void pthread_testcancel (void);
int pthread_once (pthread_once_t * once_control,
void (*init_routine) (void));
+_pthread_cleanup_t *pthread_pop_cleanup (int execute);
+
+void pthread_push_cleanup (_pthread_cleanup_t * cleanup,
+ void (*routine) (void *),
+ void *arg);
+
/*
* Thread Specific Data Functions
*/