summaryrefslogtreecommitdiff
path: root/src/cairo-mutex.c
Commit message (Collapse)AuthorAgeFilesLines
* Update FSF addressAndrea Canciani2010-04-271-1/+1
| | | | | | | | | | | I updated the Free Software Foundation address using the following script. for i in $(git grep Temple | cut -d: -f1 ) do sed -e 's/59 Temple Place[, -]* Suite 330, Boston, MA *02111-1307[, ]* USA/51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA/' -i "$i" done Fixes http://bugs.freedesktop.org/show_bug.cgi?id=21356
* [cairo-mutex] Move semicolons out of cairo-mutex-list-private.hBehdad Esfahbod2008-09-191-3/+3
| | | | | | | | Previously cairo-mutex-list-private.h assumed that every use of the file will produce a statement for each mutex by including a semicolon after each. But some uses (like enumerating all static mutexes in an array for example, can't be implemented with the semicolon in place. So, move the semicolon out to the users of the header file.
* [cairo-mutex] Prepare mutex infrastructure for adding mutex debugging facilitiesBehdad Esfahbod2008-05-271-8/+10
| | | | | | | | | Essentially renaming cairo-mutex-type-private.h to cairo-mutex-impl-private.h and changing all its namespace from cairo_mutex to cairo_mutex_impl. cairo-mutex-type-private.h then does all the sanity checks on the implementation that used to be in cairo-mutex-private.h. Plus, defines macros for the cairo-mutex namespace to map to the cairo-mutex-impl namespace. This extra mapping layer allows for add debugging facilities.
* [cairo-mutex] Fix typo.Behdad Esfahbod2007-05-031-4/+4
|
* [cairo-mutex] Rewrite defaults for CAIRO_MUTEX macros not defined by the ↵Behdad Esfahbod2007-05-011-3/+15
| | | | | | | | implementation to make them better match the design I have in mind, that I will document in a minute. They are a lot more readable and understandable now.
* [cairo-mutex] Fix usage of CAIRO_MUTEX_DECLARE()Behdad Esfahbod2007-05-011-4/+5
| | | | | | | | | Previously cairo-mutex.c was abusing cairo-mutex-private.h by defining CAIRO_MUTEX_DECLARE before including it, and cairo-mutex-private.h was simply not overriding any available CAIRO_MUTEX_DECLARE. This is not the way it should be. cairo-mutex.c should instead define CAIRO_MUTEX_DECLARE and include cairo-mutex-list-private.h for itself.
* [cairo-mutex] Make CAIRO_MUTEX_INIT/FINI take mutex object, not pointer to itBehdad Esfahbod2007-05-011-2/+2
| | | | This is more consistent with CAIRO_MUTEX_LOCK/UNLOCK.
* [cairo-mutex] Rename macro arguments from "name" to "mutex"Behdad Esfahbod2007-05-011-2/+2
|
* [cairo-mutex] Define and use CAIRO_MUTEX_USE_GENERIC_INITIALIZATIONBehdad Esfahbod2007-04-191-1/+1
| | | | | We use the generic initialization if CAIRO_MUTEX_INITIALIZE is not defined.
* [cairo-mutex] Remove multiple-inclusion guards from cairo-mutex-list-private.hBehdad Esfahbod2007-04-191-2/+0
| | | | | This is a list header file. We should not prevent it from multiple inclusions.
* Properly use CAIRO_MUTEX_{INIT,FINI} and remove CAIRO_MUTEX_LIST_PRIVATE_H ↵Mathias Hasselmann2007-04-191-4/+6
| | | | sentinal before explicitly including the mutex list.
* Introduce CAIRO_MUTEX_FINALIZE as counter-part for CAIRO_MUTEX_INITIALIZEMathias Hasselmann2007-04-191-0/+12
|
* Update _cairo_mutex_initialized during initialization.Mathias Hasselmann2007-04-191-0/+2
|
* Rename cairo-mutex-list.h to cairo-mutex-list-private.hCarl Worth2007-04-121-1/+1
| | | | | Also add it (and cairo-mutex-private.h) to Makefile.am where they should have been.
* Move declaration of cairo_mutex_t to cairo-mutex-private.hMathias Hasselmann2007-03-201-2/+4
|
* Initialize mutexes at central location.Mathias Hasselmann2007-03-201-0/+51
All mutex declarations have been moved to cairo-mutex-list.h. This should avoid breaking of less frequently tested backends, when mutexes are introduced or when existing mutexes are renamed. Instead of initializing mutexes on library startup, mutexes are lazily initialized within the few entry points of now by calling CAIRO_MUTEX_INITIALIZE(). Currently only the OS/2 backend takes care about releasing global mutexes. Therefore there is no counter part of that macro for finalizing all global mutexes yet - but as cairo-backend-os2.c shows such a function would be quite easy to implement.