1/* 2 * Copyright 2008-2011, Ingo Weinhold, ingo_weinhold@gmx.de. 3 * Distributed under the terms of the MIT License. 4 */ 5#ifndef _SYSTEM_USER_THREAD_DEFS_H 6#define _SYSTEM_USER_THREAD_DEFS_H 7 8 9#include <pthread.h> 10#include <signal.h> 11 12#include <SupportDefs.h> 13 14 15struct user_thread { 16 pthread_t pthread; // pthread pointer 17 uint32 flags; 18 status_t wait_status; // wait status for thread blocking 19 int32 defer_signals; // counter; 0 == signals allowed 20 sigset_t pending_signals; // signals that are pending, when 21 // signals are deferred 22}; 23 24 25#endif /* _SYSTEM_USER_THREAD_DEFS_H */ 26