* 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.
This commit is contained in:
Corinna Vinschen
2005-08-05 16:14:41 +00:00
parent c8f07ce787
commit 7d7e7a21b1
3 changed files with 19 additions and 7 deletions

View File

@@ -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 ();