diff options
| author | David 'Digit' Turner <digit@google.com> | 2011-08-29 21:43:46 +0200 |
|---|---|---|
| committer | David 'Digit' Turner <digit@google.com> | 2011-11-15 13:16:42 +0100 |
| commit | 9831ad3ce6bd5b22da16a275ed67e7236eae3d1f (patch) | |
| tree | 2f5152add91760c209361fb918ad83a4f24b3502 /libc/bionic/bionic_clone.c | |
| parent | 4b469eae40368913b2841b390dada6c58296c602 (diff) | |
| download | bionic-9831ad3ce6bd5b22da16a275ed67e7236eae3d1f.zip bionic-9831ad3ce6bd5b22da16a275ed67e7236eae3d1f.tar.gz bionic-9831ad3ce6bd5b22da16a275ed67e7236eae3d1f.tar.bz2 | |
libc: speed-up flockfile()/funlockfile()
For Honeycomb, we added proper file thread-safety for
all FILE* operations. However, we did implement that by
using an out-of-band hash table to map FILE* pointers
to phtread_mutex_t mutexes, because we couldn't change
the size of 'struct _sFILE' without breaking the ABI.
It turns out that our BSD-derived code already has
some support code to extend FILE* objects, so use it
instead. See libc/stdio/fileext.h
This patch gets rid of the hash table, and put the
mutex directly into the sFILE extension.
Change-Id: If1c3fe0a0a89da49c568e9a7560b7827737ff4d0
Diffstat (limited to 'libc/bionic/bionic_clone.c')
0 files changed, 0 insertions, 0 deletions
