breakpad/src/common/linux
Michael Forney 3f6f16b059 Use sched_yield instead of pthread_yield
pthread_yield is not a standard POSIX function, and is not available
in musl libc. The man page says to "Use the standardized sched_yield(2)
instead"[0].

On glibc, pthread_yield is exactly equivalent to sched_yield[1].

On bionic, pthread_yield is also not available, so on Android, the
tests define a wrapper that just calls sched_yield. This wrapper
is no longer necessary if we just use sched_yield in the first
place.

[0] http://man7.org/linux/man-pages/man3/pthread_yield.3.html
[1] https://sourceware.org/git/?p=glibc.git;a=blob;f=nptl/pthread_yield.c

Bug: google-breakpad:631
Change-Id: Ie4c6be8c17cdc2f5396a7fe972fa51a97573b049
Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2097340
Reviewed-by: Mike Frysinger <vapier@chromium.org>
2020-03-10 22:49:56 +00:00
..
tests Use sched_yield instead of pthread_yield 2020-03-10 22:49:56 +00:00
crc32.cc Linux: Check the CRC32 of the debug link file in the symbol dumper. 2014-04-23 20:52:28 +00:00
crc32.h Linux: Check the CRC32 of the debug link file in the symbol dumper. 2014-04-23 20:52:28 +00:00
dump_symbols.cc linux, client: set module name from DT_SONAME 2019-10-30 17:54:00 +00:00
dump_symbols.h Add options to set OS and filename 2019-10-24 22:05:33 +00:00
dump_symbols_unittest.cc Add options to set OS and filename 2019-10-24 22:05:33 +00:00
eintr_wrapper.h Fix compilation with gcc --std=c++11 2015-03-24 11:25:14 +00:00
elf_core_dump.cc Add utilities for processing Linux core dump files. 2012-01-07 02:25:22 +00:00
elf_core_dump.h Improve Android support 2012-08-21 14:34:48 +00:00
elf_core_dump_unittest.cc Linux breakpad_unittests: fix ThreadSanitizer problems 2019-04-26 18:44:54 +00:00
elf_gnu_compat.h linux_core_dumper: add a fallback definition for NT_SIGINFO 2019-03-07 05:58:16 +00:00
elf_symbols_to_module.cc Demangle symbol name 2015-02-03 03:17:30 +00:00
elf_symbols_to_module.h Dump PUBLIC + CFI records from libraries without debug info on Linux, use .dynsym for symbol names if there are no usable debug symbols. 2011-07-06 17:05:49 +00:00
elf_symbols_to_module_unittest.cc This change allows compiling the google-breakpad code using a global ::string class instead of std::string. For more details take a look at common/using_std_string.h 2012-06-28 22:46:01 +00:00
elfutils-inl.h Rework dump_symbols.cc using templates and traits classes to handle cross-word-size symbol dumping 2012-07-18 17:55:08 +00:00
elfutils.cc linux, dump_syms: set module name from DT_SONAME 2019-10-24 18:59:59 +00:00
elfutils.h linux, dump_syms: set module name from DT_SONAME 2019-10-24 18:59:59 +00:00
file_id.cc Teach the ELF parser to handle multiple PT_NOTE phdrs. 2017-05-26 16:43:47 +00:00
file_id.h Rename src/common/memory.h to memory_allocator.h. 2017-10-17 14:02:43 +00:00
file_id_unittest.cc Replace TYPED_TEST_CASE with TYPED_TEST_SUITE. 2019-02-28 03:09:44 +00:00
google_crashdump_uploader.cc linux: fix symupload build failures 2020-02-21 18:37:25 +00:00
google_crashdump_uploader.h GoogleCrashdumpUploader: adds Upload(string*) API to get the HTTP response. 2014-09-18 16:48:49 +00:00
google_crashdump_uploader_test.cc linux: fix symupload build failures 2020-02-21 18:37:25 +00:00
guid_creator.cc guid_creater: include string.h for memcpy 2019-08-04 04:11:55 +00:00
guid_creator.h
http_upload.cc Refactor sym_upload in tools to extract code into common/linux, and minor fixes 2016-03-30 13:46:21 -07:00
http_upload.h Refactor sym_upload in tools to extract code into common/linux, and minor fixes 2016-03-30 13:46:21 -07:00
ignore_ret.h tweak IGNORE_RET behavior a bit 2016-04-11 13:05:44 -04:00
libcurl_wrapper.cc Make LibcurlWrapper support static linking. 2020-02-22 00:03:09 +00:00
libcurl_wrapper.h Add optional new symbol upload API to sym_upload. 2020-02-20 16:50:31 +00:00
linux_libc_support.cc Improve ARM CPU info reporting. 2013-04-24 10:06:14 +00:00
linux_libc_support.h Improve ARM CPU info reporting. 2013-04-24 10:06:14 +00:00
linux_libc_support_unittest.cc Improve ARM CPU info reporting. 2013-04-24 10:06:14 +00:00
memory_mapped_file.cc linux-syscall-support: pull in latest version 2016-06-14 14:17:56 -04:00
memory_mapped_file.h Chrome on Android now supports loading the shared library directly from the APK file. 2014-07-22 11:34:11 +00:00
memory_mapped_file_unittest.cc Chrome on Android now supports loading the shared library directly from the APK file. 2014-07-22 11:34:11 +00:00
safe_readlink.cc Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
safe_readlink.h Replace readlink calls with a safer version that guarantees NULL-termination. 2011-12-21 17:51:40 +00:00
safe_readlink_unittest.cc Cleaning up google-breakpad source code of signed-unsigned comparison warnings 2012-11-21 01:33:08 +00:00
symbol_collector_client.cc Add "type" option to sym_upload sym-upload-v2 mode. 2020-02-27 22:04:31 +00:00
symbol_collector_client.h Add "type" option to sym_upload sym-upload-v2 mode. 2020-02-27 22:04:31 +00:00
symbol_upload.cc Add "type" option to sym_upload sym-upload-v2 mode. 2020-02-27 22:04:31 +00:00
symbol_upload.h Add "type" option to sym_upload sym-upload-v2 mode. 2020-02-27 22:04:31 +00:00
synth_elf.cc Let breakpad build with -Wall on OS X and Linux. 2015-12-29 13:42:49 -08:00
synth_elf.h Let breakpad build with -Wall on OS X and Linux. 2015-12-29 13:42:49 -08:00
synth_elf_unittest.cc Replace TYPED_TEST_CASE with TYPED_TEST_SUITE. 2019-02-28 03:09:44 +00:00