#
24c65445 |
|
26-Feb-2018 |
George Kulakowski <kulakowski@google.com> |
[libc] Rename pthread_impl.h to threads_impl.h Baby step towards separating pthreads out of libc Change-Id: Ibb1ba6656c796218909f4a3451db9bb66b99fb80
|
#
ad34c06c |
|
24-Mar-2017 |
George Kulakowski <kulakowski@google.com> |
[musl][pthread][mutex] Use thread handle for thread id Also add constants for the lock futex values MG-528 #done Change-Id: I5540e80f27816215b570578578fa09eb599bcfb4
|
#
aabae294 |
|
04-Mar-2017 |
George Kulakowski <kulakowski@google.com> |
[musl][mutex] Remove unused bits of pthread_mutex_t The _m_type & 4|8 bits, and the 0x40000000 value, were part of robust mutex support. Change-Id: I54206c1f5567cb594bad80f27b9b6b932b60bbbb
|
#
a2365daa |
|
15-Feb-2017 |
George Kulakowski <kulakowski@google.com> |
[musl][atomics] Use C11 atomics in public types Change-Id: Ie684384c127d881fbeccb1290adce622d368d136
|
#
ab434f7f |
|
15-Feb-2017 |
James Robinson <jamesr@google.com> |
Revert "[musl][atomics] Use C11 atomics in public types" This reverts commits f2373edae22bc921a41286318243b3985102b510 and c97bbfb0755f81841769a12a12ba5fbe86144a6b This breaks libc++ builds: FAILED: src/CMakeFiles/unwind_objects.dir/libunwind.cpp.o /b/swarm_slave/w/irzvTVgH/kitchen-workdir/buildtools/toolchain/clang+llvm-x86_64-linux/bin/clang++ -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -I/b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libunwind/include -I/b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include -stdlib=libc++ -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -fcolor-diagnostics -target x86_64-fuchsia --sysroot=/b/swarm_slave/w/irzvTVgH/kitchen-workdir/out/sysroot/x86_64-fuchsia -std=c++11 -g -Werror=return-type -W -Wall -Wchar-subscripts -Wconversion -Wmismatched-tags -Wmissing-braces -Wnewline-eof -Wno-unused-function -Wshadow -Wshorten-64-to-32 -Wsign-compare -Wsign-conversion -Wstrict-aliasing=2 -Wstrict-overflow=4 -Wunused-parameter -Wunused-variable -Wwrite-strings -Wundef -Wno-error -pedantic -D_DEBUG -D_LIBUNWIND_IS_NATIVE_ONLY -fPIC -fno-exceptions -funwind-tables -I/b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include -stdlib=libc++ -fvisibility-inlines-hidden -Werror=date-time -std=c++11 -fcolor-diagnostics -target x86_64-fuchsia --sysroot=/b/swarm_slave/w/irzvTVgH/kitchen-workdir/out/sysroot/x86_64-fuchsia -std=c++11 -fstrict-aliasing -fno-rtti -MD -MT src/CMakeFiles/unwind_objects.dir/libunwind.cpp.o -MF src/CMakeFiles/unwind_objects.dir/libunwind.cpp.o.d -o src/CMakeFiles/unwind_objects.dir/libunwind.cpp.o -c /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libunwind/src/libunwind.cpp In file included from /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libunwind/src/libunwind.cpp:19: In file included from /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/algorithm:640: In file included from /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/memory:643: /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/atomic:1713:17: error: address argument to atomic operation must be a pointer to _Atomic type ('volatile bool *' invalid) {return __c11_atomic_exchange(&__a_, true, __m);} ^ ~~~~~ /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/atomic:1716:17: error: address argument to atomic operation must be a pointer to _Atomic type ('bool *' invalid) {return __c11_atomic_exchange(&__a_, true, __m);} ^ ~~~~~ /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/atomic:1719:10: error: address argument to atomic operation must be a pointer to _Atomic type ('volatile bool *' invalid) {__c11_atomic_store(&__a_, false, __m);} ^ ~~~~~ /b/swarm_slave/w/irzvTVgH/kitchen-workdir/third_party/llvm/runtimes/libcxx/include/atomic:1722:10: error: address argument to atomic operation must be a pointer to _Atomic type ('bool *' invalid) {__c11_atomic_store(&__a_, false, __m);} Change-Id: I2fba5de2b1abc16f6e2ab3ae11f4b6ee1e70f135
|
#
f2373eda |
|
10-Feb-2017 |
George Kulakowski <kulakowski@google.com> |
[musl][atomics] Use C11 atomics in public types For now, use a shim around compare and swap. Followup patches will rewrite them directly into the C11 style, but for now minimize noise. Change-Id: Idf3626fea6318b8508d6e65f2634a71e93cf866c
|
#
20e7b5ff |
|
24-Jan-2017 |
George Kulakowski <kulakowski@google.com> |
[musl] Remove weak aliases from pthread synchonization primitives Change-Id: I94d2b9d00d27e07ef6c3a7cdc83fb3ced0e53e58
|
#
f3230c39 |
|
21-Jul-2016 |
George Kulakowski <kulakowski@google.com> |
[musl] Make pthread_mutexes not dependent on pthread_self() This introduces a non-pthread dependent thread id. Eventually we will have a more robust ID for any handle that we can use for this purpose. Change-Id: I0c3723c8d035e2150f4c5e0f4ba793e12d1a9fe1
|
#
3031c7b0 |
|
22-Jul-2016 |
George Kulakowski <kulakowski@google.com> |
[musl] Simplify return values in __timedwait and __timedwait_cp This function originally could return EINTR, not EAGAIN, as can be seen in the checks after call sites in e.g. pthread_cond_timedwait.c. This simplifies all the call sites by internally returning 0 rather than EINTR, so that callers don't all have to check for both 0 and EINTR. Change-Id: I7b7d0ab698ace6d548f10149397d8b1b308a7f99
|
#
9a76b0d6 |
|
22-Jun-2016 |
George Kulakowski <kulakowski@google.com> |
[musl] Pull pthreads source files into a separate directory Change-Id: Ic34f0c5c18cf50e42291342e978169ebf1130ae1
|