diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2005-08-05 16:14:41 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2005-08-05 16:14:41 +0000 |
commit | 7d7e7a21b13a722a6f6d23d6b7424dbc26d44534 (patch) | |
tree | b5d50d655dc1a686d1421c26b8f1895ae7d8b10a /winsup/cygwin/thread.h | |
parent | c8f07ce787b7706bebf7edd304c6a0cafa8fa310 (diff) | |
download | cygnal-7d7e7a21b13a722a6f6d23d6b7424dbc26d44534.tar.gz cygnal-7d7e7a21b13a722a6f6d23d6b7424dbc26d44534.tar.bz2 cygnal-7d7e7a21b13a722a6f6d23d6b7424dbc26d44534.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/thread.h')
-rw-r--r-- | winsup/cygwin/thread.h | 4 |
1 files changed, 2 insertions, 2 deletions
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 (); |