[COMMIT osv master] osv::run const correctness

2016-12-28 Thread Commit Bot
From: Nadav Har'El Committer: Nadav Har'El Branch: master osv::run const correctness The variant of osv::run which takes argv does not need the strings or their array to be writable, since it copies them into an std::vector anyway, so we can take a const

[COMMIT osv master] libc: move pthread_barrier to a separate file

2016-12-28 Thread Commit Bot
From: Justin Cinkelj Committer: Nadav Har'El Branch: master libc: move pthread_barrier to a separate file As @nyh noted in #823 gcc 4.8 doesn't like both using and redefining pthread_mutex_lock in the same file. This is a workaround for what seems to

[PATCH] libc: move pthread_barrier to a separate file

2016-12-28 Thread Justin Cinkelj
As @nyh noted in #823 gcc 4.8 doesn't like both using and redefining pthread_mutex_lock in the same file. This is a workaround for what seems to be a compiler bug. The code using pthread_mutex_lock/unlock (pthread_barrier_* functions) is moved to a new .cc file. Fixes #823 Signed-off-by: Justin