From 260b0c2155d809beb550b13fa4fcb08408af5d3f Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 30 Aug 1999 18:05:48 +0000 Subject: Patch from Charles-Antoine Gauthier to add support for return codes from POSIX threads that do an implicit exit by returning from the bottom of the main function. --- cpukit/score/include/rtems/score/thread.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit/score/include/rtems') diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h index 57acb755fd..1ca0005490 100644 --- a/cpukit/score/include/rtems/score/thread.h +++ b/cpukit/score/include/rtems/score/thread.h @@ -36,9 +36,14 @@ extern "C" { /* * The following defines the "return type" of a thread. + * + * NOTE: This cannot always be right. Some APIs have void + * tasks/threads, others return pointers, others may + * return a numeric value. Hopefully a pointer is + * always at least as big as an unsigned32. :) */ -typedef void Thread; +typedef void *Thread; /* * The following defines the ways in which the entry point for a -- cgit v1.2.3