1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief POSIX Threads Private Support |
---|
5 | * |
---|
6 | * This include file contains all the private support information for |
---|
7 | * POSIX threads. |
---|
8 | */ |
---|
9 | |
---|
10 | /* |
---|
11 | * COPYRIGHT (c) 1989-2011. |
---|
12 | * On-Line Applications Research Corporation (OAR). |
---|
13 | * |
---|
14 | * The license and distribution terms for this file may be |
---|
15 | * found in the file LICENSE in this distribution or at |
---|
16 | * http://www.rtems.org/license/LICENSE. |
---|
17 | */ |
---|
18 | |
---|
19 | #ifndef _RTEMS_POSIX_PTHREAD_H |
---|
20 | #define _RTEMS_POSIX_PTHREAD_H |
---|
21 | |
---|
22 | #include <rtems/posix/threadsup.h> |
---|
23 | #include <rtems/score/thread.h> |
---|
24 | |
---|
25 | #ifdef __cplusplus |
---|
26 | extern "C" { |
---|
27 | #endif |
---|
28 | |
---|
29 | /** |
---|
30 | * @defgroup POSIX_PTHREAD POSIX Threads Support |
---|
31 | * |
---|
32 | * @ingroup POSIXAPI |
---|
33 | * |
---|
34 | * @brief Private Support Information for POSIX Threads |
---|
35 | * |
---|
36 | */ |
---|
37 | /**@{**/ |
---|
38 | |
---|
39 | /** |
---|
40 | * For now, we are only allowing the user to specify the entry point |
---|
41 | * and stack size for POSIX initialization threads. |
---|
42 | */ |
---|
43 | typedef struct { |
---|
44 | /** This is the entry point for a POSIX initialization thread. */ |
---|
45 | void *(*thread_entry)(void *); |
---|
46 | /** This is the stack size for a POSIX initialization thread. */ |
---|
47 | int stack_size; |
---|
48 | } posix_initialization_threads_table; |
---|
49 | |
---|
50 | extern const size_t _POSIX_Threads_Minimum_stack_size; |
---|
51 | |
---|
52 | /** |
---|
53 | * @brief Initialization table for the first user POSIX thread. |
---|
54 | * |
---|
55 | * This table is used by _POSIX_Threads_Initialize_user_thread() and |
---|
56 | * initialized via <rtems/confdefs.h>. |
---|
57 | */ |
---|
58 | extern const posix_initialization_threads_table |
---|
59 | _POSIX_Threads_User_thread_table; |
---|
60 | |
---|
61 | /** |
---|
62 | * @brief System initialization handler to create the first user POSIX thread. |
---|
63 | */ |
---|
64 | extern void _POSIX_Threads_Initialize_user_thread( void ); |
---|
65 | |
---|
66 | /** |
---|
67 | * The following defines the information control block used to manage |
---|
68 | * this class of objects. |
---|
69 | */ |
---|
70 | extern Thread_Information _POSIX_Threads_Information; |
---|
71 | |
---|
72 | /** @} */ |
---|
73 | |
---|
74 | #ifdef __cplusplus |
---|
75 | } |
---|
76 | #endif |
---|
77 | |
---|
78 | #endif |
---|
79 | /* end of include file */ |
---|