PatchworkOS
Loading...
Searching...
No Matches
thrd_equal.c
Go to the documentation of this file.
1
#include <
stdatomic.h
>
2
#include <
stdbool.h
>
3
#include <
stdio.h
>
4
#include <
sys/proc.h
>
5
#include <
threads.h
>
6
7
#include "
user/common/syscalls.h
"
8
#include "
user/common/thread.h
"
9
10
int
thrd_equal
(
thrd_t
lhs,
thrd_t
rhs)
11
{
12
return
(lhs.
id
== rhs.
id
);
13
}
proc.h
syscalls.h
thread.h
stdatomic.h
stdbool.h
stdio.h
thrd_t
Definition
threads.h:37
thrd_t::id
tid_t id
Definition
threads.h:38
thrd_equal
int thrd_equal(thrd_t lhs, thrd_t rhs)
Definition
thrd_equal.c:10
threads.h
src
libstd
user
functions
thread
thrd_equal.c
Generated by
1.9.8