PatchworkOS
966e257
A non-POSIX operating system.
Theme:
Default
Round
Robot
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
thread.h
stdatomic.h
stdbool.h
stdio.h
thrd_t
Definition
threads.h:38
thrd_t::id
tid_t id
Definition
threads.h:39
syscalls.h
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 on Mon Dec 15 2025 21:55:53 for PatchworkOS by
1.9.8