platform_system_core/libutils/include/utils
Greg Kaiser b473061c5a Fix API for C compatibility
In https://android-review.googlesource.com/c/platform/system/core/+/1224544
when we introduced a default argument to androidSetThreadPriority(),
we broke C compatibility with this API, and with the header file
in general.

We fix this up by instead introducing a new method that takes
three arguments.  This gets this header file compiling for C again,
and keeps this particular API C compatible.

Any C++ callers of the three argument version of
androidSetThreadPriority() will need to switch to using
androidSetThreadPriorityAndPolicy().  Although since this was
a recent change, we believe there is only one such user, which
we are fixing at the same time.

Test: TreeHugger
Bug: 165009705
Merged-In: Iab0b7e6c91a8e32a17ba1b186fd0c2fe96b601e4
Change-Id: Iab0b7e6c91a8e32a17ba1b186fd0c2fe96b601e4
2020-08-24 17:29:25 +00:00
..
AndroidThreads.h Fix API for C compatibility 2020-08-24 17:29:25 +00:00
Atomic.h Usage suggestions. 2017-12-19 01:16:00 +00:00
BitSet.h Soften BitSet class comment. 2020-07-16 00:04:20 +00:00
ByteOrder.h Remove unused big-endian cruft. 2019-09-18 08:02:10 -07:00
CallStack.h CallStack: include prefix/tag when unlinked 2019-01-03 10:17:07 -08:00
Compat.h Fix mac build. 2020-05-08 15:30:21 -07:00
Condition.h [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
Debug.h Deprecate <utils/Debug.h>. 2020-08-17 10:07:29 -07:00
Endian.h
Errors.h Add statusToString function. 2019-11-18 17:38:22 +00:00
FastStrcmp.h
FileMap.h Add noexcept to move constructors and assignment operators. 2018-10-05 16:43:47 +00:00
Flattenable.h Don't #include <utils/Debug.h> from <utils/Flattenable.h>. 2020-08-17 10:14:16 -07:00
Functor.h Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
JenkinsHash.h
KeyedVector.h Remove more semicolons at the end of namespaces 2018-04-11 23:14:13 -07:00
LightRefBase.h libutils: RefBase remove 'basetype' typedefs 2019-07-16 21:06:28 +00:00
List.h Remove more semicolons at the end of namespaces 2018-04-11 23:14:13 -07:00
Log.h
Looper.h [cleanup] Fix a clang-tidy warning 2020-04-22 16:20:29 -07:00
LruCache.h [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
misc.h Remove extra semicolon at end of namespace 2018-04-10 22:10:54 +00:00
Mutex.h libutils: Fix thread safety annotations in Mutex 2019-03-29 12:21:57 -07:00
NativeHandle.h
Printer.h [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
ProcessCallStack.h [libutils] Modernize codebase by replacing NULL with nullptr 2018-07-16 18:11:34 -07:00
PropertyMap.h
RefBase.h libutils: introduce sp<T>::make 2020-02-20 17:21:27 -08:00
RWLock.h Modernize codebase by replacing NULL with nullptr 2018-07-13 15:28:59 -07:00
Singleton.h Modernize codebase by replacing NULL with nullptr 2018-07-13 15:28:59 -07:00
SortedVector.h Remove more semicolons at the end of namespaces 2018-04-11 23:14:13 -07:00
StopWatch.h Remove more semicolons at the end of namespaces 2018-04-11 23:14:13 -07:00
String8.h Merge "String8: operator<<" 2020-02-27 23:18:49 +00:00
String16.h Merge "String8: operator<<" 2020-02-27 23:18:49 +00:00
StrongPointer.h libutils: introduce sp<T>::make 2020-02-20 17:21:27 -08:00
SystemClock.h Add uptimeNanos to SystemClock 2020-08-07 14:36:07 -07:00
Thread.h Suppress lint warnings on google-default-arguments 2018-10-29 23:06:23 +09:00
ThreadDefs.h Remove more semicolons at the end of namespaces 2018-04-11 23:14:13 -07:00
threads.h
Timers.h Make systemTime() abort on bad input. 2020-05-27 15:31:55 -07:00
Tokenizer.h Move system/core/ off NO_ERROR. 2018-10-08 11:15:52 -07:00
Trace.h Trace.h: explicitly use global namespace 2019-11-05 17:59:46 -08:00
TypeHelpers.h Remove extra semicolon at end of namespace 2018-04-10 22:10:54 +00:00
Unicode.h Remove two more unused utf32 functions. 2019-07-16 07:56:23 -07:00
Vector.h Update language to comply with Android's inclusive language guidance 2020-07-28 15:58:25 -07:00
VectorImpl.h Modernize codebase by replacing NULL with nullptr 2018-07-13 15:28:59 -07:00