Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix: test uv_barrier_t size in right block (libuv#4311)
The local uv_barrier_t implementation is used: for AIX, OpenBSD and any system not defining PTHREAD_BARRIER_SERIAL_THREAD. As the uv_barrier_t struct was modified and it isn't a pointer anymore, the check for uv_barrier_t size isn't right anymore for systems not using local uv_barrier_t implementation. so move the check inside the block implementing uv_barrier_t using pthread_barrier_t. Tested on OpenBSD, where the build failed due to the STATIC_ASSERT().
- Loading branch information