user_thread.h: use struct keyword to be usable in C.
This commit is contained in:
parent
4b235ebeb9
commit
194afffd85
|
@ -12,10 +12,10 @@
|
||||||
#include <user_thread_defs.h>
|
#include <user_thread_defs.h>
|
||||||
|
|
||||||
|
|
||||||
static inline user_thread*
|
static inline struct user_thread*
|
||||||
get_user_thread()
|
get_user_thread()
|
||||||
{
|
{
|
||||||
return (user_thread*)tls_get(TLS_USER_THREAD_SLOT);
|
return (struct user_thread*)tls_get(TLS_USER_THREAD_SLOT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ defer_signals()
|
||||||
static void inline
|
static void inline
|
||||||
undefer_signals()
|
undefer_signals()
|
||||||
{
|
{
|
||||||
user_thread* thread = get_user_thread();
|
struct user_thread* thread = get_user_thread();
|
||||||
if (--thread->defer_signals == 0 && thread->pending_signals != 0) {
|
if (--thread->defer_signals == 0 && thread->pending_signals != 0) {
|
||||||
// signals shall no longer be deferred -- call a dummy syscall to handle
|
// signals shall no longer be deferred -- call a dummy syscall to handle
|
||||||
// the pending ones
|
// the pending ones
|
||||||
|
|
Loading…
Reference in New Issue