Add pthread_condattr_init/destroy/setpshared/getpshared

Note that this does not change the implementation of conditional variables
which still use shared futexes, independent on the flags being selected.

This will be fixed in a later patch, once our system is modified to use
pthread_condattr_setpshared(attr, PTHREAD_PROCESS_SHARED) properly.

Change-Id: I935de50964cd41f97a13dbfd6626d3407b0406c3
This commit is contained in:
David 'Digit' Turner
2010-03-18 14:07:42 -07:00
parent 40e6b82286
commit ee7b077abf
3 changed files with 94 additions and 4 deletions

View File

@@ -78,7 +78,13 @@ Differences between current and Android 2.1:
- DNS: get rid of spurious random DNS queries when trying to resolve
an unknown domain name. Due to an initialization bug, a random DNS search
list was generated for each thread is net.dns.search is not defined.
list was generated for each thread if net.dns.search is not defined.
- <pthread.h>: Add pthread_condattr_init/destroy/setpshared/getpshared functions
to enable proper shared conditional variable initialization.
XXX: The implementation still always uses shared condvars, independent
of the flags being selected. This will change in a later commit.
-------------------------------------------------------------------------------
Differences between Android 2.1 and 2.0.1: