diff options
author | Neal H. Walfield <neal@gnu.org> | 2008-08-27 16:05:20 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2009-04-08 00:00:12 +0200 |
commit | 604deeca6b23263cc608e2db3b28d5e0ef55aa16 (patch) | |
tree | 38ebb3f7ebfd616cebb0a4320e4a773740f25840 | |
parent | d55bc739741ef1b817a46034f431d8267f88f3a1 (diff) |
2008-08-27 Neal H. Walfield <neal@gnu.org>
* pthread/cthreads-compat.c: Don't include <cthreads.h>.
(cthread_t): New type definition.
(cthread_fn_t): Likewise.
(cthread_key_t): Likewise.
(CTHREAD_KEY_INVALID): Define.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | pthread/cthreads-compat.c | 8 |
2 files changed, 14 insertions, 2 deletions
@@ -1,3 +1,11 @@ +2008-08-27 Neal H. Walfield <neal@gnu.org> + + * pthread/cthreads-compat.c: Don't include <cthreads.h>. + (cthread_t): New type definition. + (cthread_fn_t): Likewise. + (cthread_key_t): Likewise. + (CTHREAD_KEY_INVALID): Define. + 2008-08-26 Neal H. Walfield <neal@gnu.org> * sysdeps/mach/pt-thread-alloc.c (__pthread_thread_alloc): Set diff --git a/pthread/cthreads-compat.c b/pthread/cthreads-compat.c index ccea03c..e0536ef 100644 --- a/pthread/cthreads-compat.c +++ b/pthread/cthreads-compat.c @@ -1,5 +1,5 @@ /* Compatibility routines for cthreads. - Copyright (C) 2000, 2002 Free Software Foundation, Inc. + Copyright (C) 2000, 2002, 2008 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -20,7 +20,11 @@ #include <assert.h> #include <pthread.h> -#include <cthreads.h> +typedef void *cthread_t; +typedef void *(*cthread_fn_t) (void *arg); +typedef int cthread_key_t; + +#define CTHREAD_KEY_INVALID (cthread_key_t) -1 void cthread_detach (cthread_t thread) |