537eaff5de9aace3348436166d4cde7adc1e488e |
|
15-Dec-2011 |
Matthew Xie <mattx@google.com> |
In condvar wait functions, set the holder back before restoring count Before this fix, there is a racing condition. The previous owner thread can get into the mutex without proper locking by passing the lock owner check in mutex_lock function. bug 5699382 Change-Id: Ib81330e2f3669e5f72b101f3da7abdb15d3ac993
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
dbecdeabb20e0ce11121819c63373f0afba57c58 |
|
19-Mar-2010 |
Marcus Brinkmann <marcus.brinkmann@ruhr-uni-bochum.de> |
Consistently include <config.h> in all C source files and never in header files.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
ae24bb35e2ee3ecde990f55852982b573754ec43 |
|
11-Jul-2009 |
Colin Walters <walters@verbum.org> |
Bug 18121 - Use a monotonic clock for pthread timeouts Patch based on one from Keith Mok <ek9852@gmail.com>, some followup work from Janne Karhunen <Janne.Karhunen@gmail.com>. We don't want condition variable timeouts to be affected by the system clock. Use the POSIX CLOCK_MONOTONIC if available.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
5baf2f856a9c6625993234855b07680da1c8916f |
|
11-Jul-2009 |
Tobias Mueller <fdo-bugs@cryptobitch.de> |
Bug 21161 - Update the FSF address No comment. Signed-off-by: Colin Walters <walters@verbum.org>
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
d012387afef0ba02185ebe27bc6bb15551912e92 |
|
14-Jul-2007 |
Havoc Pennington <hp@redhat.com> |
2007-07-13 Havoc Pennington <hp@redhat.com> * Add indent-tabs-mode: nil to all file headers.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
43b944a0a6ea48e8a8b06ae3e638299f591cde8d |
|
15-Jun-2007 |
Havoc Pennington <hp@redhat.com> |
2007-06-15 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps.c (_dbus_set_errno_to_zero) (_dbus_get_is_errno_nonzero, _dbus_get_is_errno_eintr) (_dbus_strerror_from_errno): family of functions to abstract errno, though these are somewhat bogus (really we should make our socket wrappers not use errno probably - the issue is that any usage of errno that isn't socket-related probably is not cross-platform, so should either be in a unix-only file that can use errno directly, or is a bug - these general errno wrappers hide issues of this nature in non-socket code, while socket-specific API changes would not since sockets are allowed cross-platform)
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
c0dbd2a2b5ce42612b1bffe778d6127682cddb45 |
|
19-Nov-2006 |
Thiago Macieira <thiago@kde.org> |
* dbus/dbus-sysdeps-pthread.c (_dbus_pthread_mutex_lock, _dbus_pthread_condvar_wait, _dbus_pthread_condvar_wait_timeout): set pmutex->holder to pthread_self() after coming back from a conditional variable wait as well as in one codepath where it was forgotten. Approved by: Havoc Pennington.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
eaefe03a8891b84e3f9e1f99f9098d65567e3092 |
|
28-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-27 Havoc Pennington <hp@redhat.com> * dbus/dbus-test.c: enclose more of the file in the DBUS_BUILD_TESTS check. * dbus/dbus-sysdeps-pthread.c (PTHREAD_CHECK): fix for DBUS_DISABLE_ASSERT case. * dbus/dbus-connection.c (dbus_connection_get_unix_user): document that it only works on the server side * dbus/dbus-bus.c: add a global lock covering the BusData we attach to each connection (internal_bus_get): lock our access to the BusData (dbus_bus_register): lock the entire registration process with _DBUS_LOCK(bus_datas). If we get the lock and registration is already complete, silently return (vs. previous behavior of aborting). (dbus_bus_set_unique_name): lock the BusData (dbus_bus_get_unique_name): lock the BusData
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
fd27857e31dc6bd7b78ddddbb6ef3f1162ee0b88 |
|
27-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-27 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-pthread.c: make the "count" and "holder" variables volatile, suggested by Thiago. Document struct fields. (PTHREAD_CHECK): remove pthread error checking if assertions are disabled, should reduce the no-assertions case to the bare minimum code.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
fbfec98d0f3ad5232dd6cbd63acbdd008acf2578 |
|
27-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-26 Havoc Pennington <hp@redhat.com> * dbus/dbus-sysdeps-pthread.c (_dbus_pthread_mutex_lock): change to be recursive (_dbus_pthread_mutex_unlock): make it recursive (_dbus_pthread_condvar_wait): save/restore the recursion count (_dbus_pthread_condvar_wait_timeout): save/restore the recursion count
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
bdbbf46ca88ac43bec9c36909990730d102983c5 |
|
27-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-26 Havoc Pennington <hp@redhat.com> * doc/dbus-specification.xml: clarify the UUID text slightly * dbus/dbus-sysdeps-pthread.c: check for and mostly abort on pthread errors. Add DBusMutexPThread and DBusCondVarPThread in preparation for being able to extend them for e.g. recursive mutexes.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|
5886f5326da2dbe8f1a7c97736d544fa4cef169b |
|
27-Oct-2006 |
Havoc Pennington <hp@redhat.com> |
2006-10-26 Havoc Pennington <hp@redhat.com> * dbus/dbus-threads.[hc]: Documentation improvements. Clarify how condition variables relate to recursive mutexes. * dbus/dbus-sysdeps-pthread.c, dbus/dbus-sysdeps-win-thread.c, dbus/dbus-threads.c: Split the platforms-specific thread implementations into their own files. * dbus/dbus-sysdeps-pthread.c (_dbus_pthread_condvar_wait_timeout): invert the return value, it was backward. Not that anything uses it.
/external/dbus/dbus/dbus-sysdeps-pthread.c
|