summaryrefslogtreecommitdiffstats
path: root/libc/include/pthread.h
Commit message (Collapse)AuthorAgeFilesLines
* libc: remove C++ comments from public headers.David 'Digit' Turner2010-09-271-1/+1
| | | | Change-Id: I4af84f912062cd2ff34711c25122fb323f20c032
* resolved conflicts for merge of 7b6e6fa5 to krakenJean-Baptiste Queru2010-06-031-0/+2
|\ | | | | | | Change-Id: I2b9b80a7fa32c56be2b85ff8be0d6e7ac1848afe
| * merge from open-source masterThe Android Open Source Project2010-06-031-0/+2
| |\ | | | | | | | | | Change-Id: Ib7fc9c6f79f9b13e2175da137005d8968ea85eaf
| | * pthread: introduce pthread_setname_np() as a mean to give names to threadsAndré Goddard Rosa2010-05-191-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | ... so that each cloned process at the kernel level can be named independently. Tools like 'top' can display the CPU/memory statistics for each process's thread if "Show Threads" mode is on. With this function in place, we can convert dalvik/Thread.c setThreadName() function over this function. This feature ought to be provided by the underlying C library and not coded directly in Dalvik. Change-Id: Ifa997665dbaa114e0b126f8c667708be9a4137fd Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
* | | Add pthread_rwlock_t implementation to the C library (DO NOT MERGE)David 'Digit' Turner2010-05-191-0/+35
|/ / | | | | | | Change-Id: I756d8c26afc37cd7b71117ddbaa02a2cb40fdecb
* | Add pthread_condattr_init/destroy/setpshared/getpsharedDavid 'Digit' Turner2010-03-181-0/+5
| | | | | | | | | | | | | | | | | | | | 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
* | Revert "bionic: pthread: use private futexes by default for mutexes and ↵Fabrice Di Meglio2010-03-111-5/+0
| | | | | | | | | | | | condvars" This reverts commit ba9c6f0989ae94778ba2b9f597adc827c9dc81e8.
* | bionic: pthread: use private futexes by default for mutexes and condvarsDavid 'Digit' Turner2010-03-111-0/+5
|/ | | | | | | | | | Private futexes are a recent kernel addition: faster futexes that cannot be shared between processes. This patch uses them by default, unless the PROCESS_SHARED attribute flag is used when creating a mutex and/or conditional variable. Also introduces pthread_condattr_init/destroy/setpshared/getpshared. Change-Id: I3a0e2116f467072b046524cb5babc00e41057a53
* Add pthread_mutex_lock_timeout_npDavid 'Digit' Turner2009-09-221-0/+7
| | | | | | | | This is used to perform a mutex lock for a given amount of milliseconds before giving up. Using the _np prefix since this is absolutely not portable. Also remove a compiler warning in pthread_attr_getstackaddr
* added pthread_cond_timedwait_relative_np()Mathias Agopian2009-07-131-0/+20
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+243
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-243/+0
|
* auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-0/+6
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-0/+2
|
* Initial Contributionandroid-1.0The Android Open Source Project2008-10-211-0/+235