summaryrefslogtreecommitdiff
path: root/exit.c
diff options
context:
space:
mode:
Diffstat (limited to 'exit.c')
-rw-r--r--exit.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/exit.c b/exit.c
new file mode 100644
index 0000000..af1f50f
--- /dev/null
+++ b/exit.c
@@ -0,0 +1,19 @@
+/*
+ * exit.c
+ *
+ * Description:
+ * This translation unit implements routines associated with exiting from
+ * a thread.
+ */
+
+#include "pthread.h"
+
+void pthread_exit(void * value)
+{
+ /* The semantics are such that additional tasks must be done for
+ strict POSIX conformance. We must add code here later which
+ deals with executing cleanup handlers and such. For now, the
+ following is mostly correct: */
+
+ ExitThread((DWORD) value);
+}