Implements Thread.
Thread Linux | Implements Thread. |
Copyright | This program is free software. |
Files | |
C-kern/ | Header file of Thread. |
C-kern/ | Linux specific implementation Thread Linux. |
thread_startargument_t | Startargument of the started system thread. |
thread_t | |
static variables | |
s_thread_errtimer | Simulates an error in <newgroup_thread>. |
helper | |
main_thread | The start function of the thread. |
lifetime | |
synchronize | |
change-run-state | |
abort | |
test | |
wait_for_signal | Waits for a blocked signal until it has been received. |
wait_for_signal | Polls for a blocked signal. |
This program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
© 2011 Jörg Seebohn
Header file of Thread.
Linux specific implementation Thread Linux.
struct thread_startargument_t
Startargument of the started system thread. The function main_thread then calls the main task of the thread which is stored in <thread_t.main>.
static variables | |
s_thread_errtimer | Simulates an error in <newgroup_thread>. |
helper | |
main_thread | The start function of the thread. |
lifetime | |
synchronize | |
change-run-state | |
abort | |
test | |
wait_for_signal | Waits for a blocked signal until it has been received. |
wait_for_signal | Polls for a blocked signal. |
static void * main_thread( thread_startargument_t * startarg )
The start function of the thread. This is the same for all threads. It initializes signalstack, threadcontext_t, and calls the user supplied main function.
Startargument of the started system thread.
struct thread_startargument_t
Simulates an error in newgroup_thread.
static test_errortimer_t s_thread_errtimer
The start function of the thread.
static void * main_thread( thread_startargument_t * startarg )
Waits for a blocked signal until it has been received.
static int wait_for_signal( int signr )