summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>1998-07-26 11:39:55 +0000
committerrpj <rpj>1998-07-26 11:39:55 +0000
commit779359d2cf050c2885a05b81774b87b82466a471 (patch)
treeb581339e80e974c575dfd61d512a0d6cfcfb2ea2
parent427c771981b2580db95cafbd2097721e9e1b8207 (diff)
Sun Jul 26 13:06:12 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
* implement.h (_pthread_new_thread_entry): Fix prototype. (_pthread_find_thread_entry): Ditto. (_pthread_delete_thread_entry): Ditto. (_pthread_exit): Add prototype.
-rw-r--r--ChangeLog5
-rw-r--r--implement.h10
2 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 28bed9b..4f882d5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
Sun Jul 26 13:06:12 1998 Ross Johnson <rpj@ixobrychus.canberra.edu.au>
+ * implement.h (_pthread_new_thread_entry): Fix prototype.
+ (_pthread_find_thread_entry): Ditto.
+ (_pthread_delete_thread_entry): Ditto.
+ (_pthread_exit): Add prototype.
+
* exit.c (_pthread_exit): New function. Called from pthread_exit()
and _pthread_start_call() to exit the thread. It allows an extra
argument which is the return code passed to _endthreadex().
diff --git a/implement.h b/implement.h
index cde8a33..5cc0de6 100644
--- a/implement.h
+++ b/implement.h
@@ -98,17 +98,19 @@ void _pthread_handler_pop_all(int stack,
/* Primitives to manage threads table entries. */
-int _pthread_new_thread_entry(pthread_t thread,
- _pthread_threads_thread_t ** entry);
+int _pthread_new_thread_entry(pthread_t thread,
+ _pthread_threads_thread_t * entry);
-_pthread_threads_thread ** _pthread_find_thread_entry(pthread_t thread);
+_pthread_threads_thread_t * _pthread_find_thread_entry(pthread_t thread);
-void _pthread_delete_thread_entry(_pthread_threads_thread_t ** this);
+void _pthread_delete_thread_entry(_pthread_threads_thread_t * this);
/* Thread cleanup. */
void _pthread_vacuum(void);
+void _pthread_exit(void * value, int return_code);
+
#ifdef __cplusplus
}
#endif /* __cplusplus */