From 7d7e7a21b13a722a6f6d23d6b7424dbc26d44534 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Fri, 5 Aug 2005 16:14:41 +0000 Subject: * thread.cc (pthread::create(3 args)): Make bool. (pthread_null::create): Ditto. (pthread::create(4 args)): Check return of inner create rather than calling is_good_object(). * thread.h: Ditto. --- winsup/cygwin/thread.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'winsup/cygwin/thread.h') diff --git a/winsup/cygwin/thread.h b/winsup/cygwin/thread.h index 7fa61984e..c15ded478 100644 --- a/winsup/cygwin/thread.h +++ b/winsup/cygwin/thread.h @@ -380,7 +380,7 @@ public: HANDLE cancel_event; pthread_t joiner; - virtual void create (void *(*)(void *), pthread_attr *, void *); + virtual bool create (void *(*)(void *), pthread_attr *, void *); pthread (); virtual ~pthread (); @@ -473,7 +473,7 @@ class pthread_null : public pthread /* From pthread These should never get called * as the ojbect is not verifyable */ - void create (void *(*)(void *), pthread_attr *, void *); + bool create (void *(*)(void *), pthread_attr *, void *); void exit (void *value_ptr) __attribute__ ((noreturn)); int cancel (); void testcancel (); -- cgit v1.2.3