Rev 1078 | Rev 1158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 1078 | Rev 1156 | ||
|---|---|---|---|
| Line 78... | Line 78... | ||
| 78 | char name[THREAD_NAME_BUFLEN]; |
78 | char name[THREAD_NAME_BUFLEN]; |
| 79 | 79 | ||
| 80 | void (* thread_code)(void *); /**< Function implementing the thread. */ |
80 | void (* thread_code)(void *); /**< Function implementing the thread. */ |
| 81 | void *thread_arg; /**< Argument passed to thread_code() function. */ |
81 | void *thread_arg; /**< Argument passed to thread_code() function. */ |
| 82 | 82 | ||
| 83 | context_t saved_context; /**< From here, the stored context is restored when the thread is scheduled. */ |
83 | /** From here, the stored context is restored when the thread is scheduled. */ |
| - | 84 | context_t saved_context; |
|
| 84 | context_t sleep_timeout_context; /**< From here, the stored failover context is restored when sleep times out. */ |
85 | /** From here, the stored timeout context is restored when sleep times out. */ |
| - | 86 | context_t sleep_timeout_context; |
|
| - | 87 | /** From here, the stored interruption context is restored when sleep is interrupted. */ |
|
| - | 88 | context_t sleep_interruption_context; |
|
| 85 | 89 | ||
| 86 | waitq_t *sleep_queue; /**< Wait queue in which this thread sleeps. */ |
90 | waitq_t *sleep_queue; /**< Wait queue in which this thread sleeps. */ |
| 87 | timeout_t sleep_timeout; /**< Timeout used for timeoutable sleeping. */ |
91 | timeout_t sleep_timeout; /**< Timeout used for timeoutable sleeping. */ |
| 88 | volatile int timeout_pending; /**< Flag signalling sleep timeout in progress. */ |
92 | volatile int timeout_pending; /**< Flag signalling sleep timeout in progress. */ |
| 89 | 93 | ||