e7b4af434b
Now thrd_t are a struct that contains both thread handle and thread id. For threads that not created by thrd_create, thrd_current are returning pseudo thread handle; but we can still compare threads differences by using thread id. Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17071>