2008-05-14 07:55:16 +04:00
|
|
|
/*
|
2011-06-12 04:00:23 +04:00
|
|
|
* Copyright 2008-2011, Ingo Weinhold, ingo_weinhold@gmx.de.
|
2008-05-14 07:55:16 +04:00
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*/
|
|
|
|
#ifndef _SYSTEM_USER_THREAD_DEFS_H
|
|
|
|
#define _SYSTEM_USER_THREAD_DEFS_H
|
|
|
|
|
2011-06-12 04:00:23 +04:00
|
|
|
|
|
|
|
#include <pthread.h>
|
|
|
|
#include <signal.h>
|
|
|
|
|
2008-05-14 07:55:16 +04:00
|
|
|
#include <SupportDefs.h>
|
|
|
|
|
|
|
|
|
|
|
|
struct user_thread {
|
2011-06-12 04:00:23 +04:00
|
|
|
pthread_t pthread; // pthread pointer
|
|
|
|
uint32 flags;
|
|
|
|
status_t wait_status; // wait status for thread blocking
|
2008-05-14 07:55:16 +04:00
|
|
|
int32 defer_signals; // counter; 0 == signals allowed
|
2011-06-12 04:00:23 +04:00
|
|
|
sigset_t pending_signals; // signals that are pending, when
|
2008-05-14 07:55:16 +04:00
|
|
|
// signals are deferred
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif /* _SYSTEM_USER_THREAD_DEFS_H */
|