Yonatan Komornik 500f02eb66 Fixes two bugs in the Windows thread / pthread translation layer
1. If threads are resized the threads' `ZSTD_pthread_t` might move
while the worker still holds a pointer into it (see more details in #3120).
2. The join operation was waiting for a thread and then return its `thread.arg`
as a return value, but since the `ZSTD_pthread_t thread` was passed by value it
would have a stale `arg` that wouldn't match the thread's actual return value.

This fix changes the `ZSTD_pthread_join` API and removes support for returning
a value. This means that we are diverging from the `pthread_join` API and this
is no longer just an alias.
In the future, if needed, we could return a Windows thread's return value using
`GetExitCodeThread`, but as this path wouldn't be excised in any case, it's
preferable to not add it right now.
2022-12-17 13:38:02 -08:00
..
2022-03-12 08:58:04 +01:00
2021-09-20 14:46:43 -07:00
2022-03-12 08:58:04 +01:00
2022-03-12 08:58:04 +01:00
2022-10-17 08:03:44 -07:00
2022-12-14 16:00:37 -08:00
2022-01-21 13:55:41 -08:00
2022-03-05 23:47:25 +02:00
2022-12-14 06:58:35 -08:00
2022-12-14 06:58:35 -08:00