mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
C11 threads: Fix thrd_t / pthread_t compatibility assertion
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
parent
fc7283264d
commit
c9abd9b4f3
@ -21,8 +21,8 @@
|
||||
int
|
||||
thrd_create (thrd_t *thr, thrd_start_t func, void *arg)
|
||||
{
|
||||
_Static_assert (sizeof (thr) == sizeof (pthread_t),
|
||||
"sizeof (thr) != sizeof (pthread_t)");
|
||||
_Static_assert (sizeof (thrd_t) == sizeof (pthread_t),
|
||||
"sizeof (thrd_t) != sizeof (pthread_t)");
|
||||
|
||||
int err_code = __pthread_create_2_1 (thr, ATTR_C11_THREAD,
|
||||
(void* (*) (void*))func, arg);
|
||||
|
Loading…
Reference in New Issue
Block a user