diff options
author | Elliott Hughes <enh@google.com> | 2013-10-30 14:40:09 -0700 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2013-10-31 12:31:16 -0700 |
commit | c3f114037dbf028896310609fd28cf2b3da99c4d (patch) | |
tree | e463aeb3604177cd93cea8a58936a8dce4b34ee5 /libc/bionic/pthread_setschedparam.cpp | |
parent | d0d0b52da375bfa85947a4257198791f615f18a8 (diff) | |
download | android_bionic-c3f114037dbf028896310609fd28cf2b3da99c4d.tar.gz android_bionic-c3f114037dbf028896310609fd28cf2b3da99c4d.tar.bz2 android_bionic-c3f114037dbf028896310609fd28cf2b3da99c4d.zip |
<pthread.h> fixes and pthread cleanup.
<pthread.h> was missing nonnull attributes, noreturn on pthread_exit,
and had incorrect cv qualifiers for several standard functions.
I've also marked the non-standard stuff (where I count glibc rather
than POSIX as "standard") so we can revisit this cruft for LP64 and
try to ensure we're compatible with glibc.
I've also broken out the pthread_cond* functions into a new file.
I've made the remaining pthread files (plus ptrace) part of the bionic code
and fixed all the warnings.
I've added a few more smoke tests for chunks of untested pthread functionality.
We no longer need the libc_static_common_src_files hack for any of the
pthread implementation because we long since stripped out the rest of
the armv5 support, and this hack was just to ensure that __get_tls in libc.a
went via the kernel if necessary.
This patch also finishes the job of breaking up the pthread.c monolith, and
adds a handful of new tests.
Change-Id: Idc0ae7f5d8aa65989598acd4c01a874fe21582c7
Diffstat (limited to 'libc/bionic/pthread_setschedparam.cpp')
-rw-r--r-- | libc/bionic/pthread_setschedparam.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/bionic/pthread_setschedparam.cpp b/libc/bionic/pthread_setschedparam.cpp index 55ec79180..419cc6f81 100644 --- a/libc/bionic/pthread_setschedparam.cpp +++ b/libc/bionic/pthread_setschedparam.cpp @@ -31,7 +31,7 @@ #include "private/ErrnoRestorer.h" #include "pthread_accessor.h" -int pthread_setschedparam(pthread_t t, int policy, struct sched_param const* param) { +int pthread_setschedparam(pthread_t t, int policy, const sched_param* param) { ErrnoRestorer errno_restorer; pthread_accessor thread(t); |