summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-08 16:19:47 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>1997-01-08 16:19:47 +0000
commit0d051533b9ff3b24e1b657c8a433cf6f4ae68e17 (patch)
treeb6a73c1a4421bc08b517983933d5232ff30f94a8
parentSuggested changes from Mark Jordan which eliminate warnings and errors (diff)
downloadrtems-0d051533b9ff3b24e1b657c8a433cf6f4ae68e17.tar.bz2
added type definitions for all supported task entry formats
-rw-r--r--c/src/exec/score/headers/thread.h7
-rw-r--r--c/src/exec/score/include/rtems/score/thread.h7
-rw-r--r--cpukit/score/include/rtems/score/thread.h7
3 files changed, 18 insertions, 3 deletions
diff --git a/c/src/exec/score/headers/thread.h b/c/src/exec/score/headers/thread.h
index b4b74dd344..c157f9b712 100644
--- a/c/src/exec/score/headers/thread.h
+++ b/c/src/exec/score/headers/thread.h
@@ -53,7 +53,12 @@ typedef enum {
THREAD_START_BOTH_NUMERIC_FIRST
} Thread_Start_types;
-typedef Thread ( *Thread_Entry )( );
+typedef Thread ( *Thread_Entry )(); /* basic type */
+
+typedef Thread ( *Thread_Entry_numeric )( unsigned32 );
+typedef Thread ( *Thread_Entry_pointer )( void * );
+typedef Thread ( *Thread_Entry_both_pointer_first )( void *, unsigned32 );
+typedef Thread ( *Thread_Entry_both_numeric_first )( unsigned32, void * );
/*
* The following lists the algorithms used to manage the thread cpu budget.
diff --git a/c/src/exec/score/include/rtems/score/thread.h b/c/src/exec/score/include/rtems/score/thread.h
index b4b74dd344..c157f9b712 100644
--- a/c/src/exec/score/include/rtems/score/thread.h
+++ b/c/src/exec/score/include/rtems/score/thread.h
@@ -53,7 +53,12 @@ typedef enum {
THREAD_START_BOTH_NUMERIC_FIRST
} Thread_Start_types;
-typedef Thread ( *Thread_Entry )( );
+typedef Thread ( *Thread_Entry )(); /* basic type */
+
+typedef Thread ( *Thread_Entry_numeric )( unsigned32 );
+typedef Thread ( *Thread_Entry_pointer )( void * );
+typedef Thread ( *Thread_Entry_both_pointer_first )( void *, unsigned32 );
+typedef Thread ( *Thread_Entry_both_numeric_first )( unsigned32, void * );
/*
* The following lists the algorithms used to manage the thread cpu budget.
diff --git a/cpukit/score/include/rtems/score/thread.h b/cpukit/score/include/rtems/score/thread.h
index b4b74dd344..c157f9b712 100644
--- a/cpukit/score/include/rtems/score/thread.h
+++ b/cpukit/score/include/rtems/score/thread.h
@@ -53,7 +53,12 @@ typedef enum {
THREAD_START_BOTH_NUMERIC_FIRST
} Thread_Start_types;
-typedef Thread ( *Thread_Entry )( );
+typedef Thread ( *Thread_Entry )(); /* basic type */
+
+typedef Thread ( *Thread_Entry_numeric )( unsigned32 );
+typedef Thread ( *Thread_Entry_pointer )( void * );
+typedef Thread ( *Thread_Entry_both_pointer_first )( void *, unsigned32 );
+typedef Thread ( *Thread_Entry_both_numeric_first )( unsigned32, void * );
/*
* The following lists the algorithms used to manage the thread cpu budget.