aboutsummaryrefslogtreecommitdiff
path: root/src/pj_mutex.c
AgeCommit message (Collapse)Author
2018-09-18Only allow usage of proj_api.h if explicit consent was givenKristian Evers
We want to flag that proj_api_h is now deprecated. With this commit it is now mandatory to #define ACCEPT_USE_OF_DEPRECATED_PROJ_API_H before proj_api.h can be included. proj_api.h is used internally a bunch of places. Therefore ACCEPT_USE_OF_DEPRECATED_PROJ_API_H has been defined in projects.h and a few other necessary files to ensure that PROJ compiles. Closes #836
2018-04-28pj_mutex.c: use PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP when availableEven Rouault
2018-04-28Implement thread-safe creation of proj mutex (fixes #954)Even Rouault
2018-03-11Remove 'pj_' prefix from static functionsKristian Evers
Functions should only be prefixed with 'pj_' when they can be used in other parts of the code base and not just within a single file. Takes care of the last step in #675.
2018-03-11Remove angle brackets for proj headers (#849)Thomas Knudsen
* Avoid using angle brackets for PROJ headers. Switching from #include <proj.h> to #include "proj.h", and correspondingly for projects.h and proj_api.h, reduces the risk of accidentally picking up a system installed older version of the header while building a new version of PROJ. * Also handle geodesic.h
2017-08-04Fix the Solaris 11.3 compilation erroredechaux
When _XOPEN_SOURCE 500 is defined on Solaris 11 the following error message is displayed : "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications" As pthread_mutexattr_settype is available without _XOPEN_SOURCE defined, the easier way to fix the error is to disable it.
2016-07-14Suppressed warning about redefining MUTEX_win32Kristian Evers
2016-05-11Portability cleanups for the code in PR #6 (and a few additional source files)Thomas Knudsen
Eliminated mixed code and declarations, converted C++ style comments and probably did a few more things highlighted by running gcc with the "-W -Wall -Wextra -pedantic" flags
2015-09-09Move #include "proj_config.h" inside #ifndef _WIN32Ture Pålsson
2015-09-09Use autoconf for PTHREAD_MUTEX_RECURSIVE (#302)Ture Pålsson
On FreeBSD 10, PTHREAD_MUTEX_RECURSIVE exists, but as an enum constant, not a #define macro, so it cannot be detected using #ifdef.
2015-06-28pj_mutex.c: avoid warning about pthread_mutexattr_settype being undefinedEven Rouault
2015-05-31Remove unused $Id$ keywords.Elliott Sales de Andrade
2013-06-22avoid warning about pj_init_lock not being implementedFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2349 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-06-19use PTHREAD_MUTEX_RECURSIVE_NP on pre-unix98 systems instead of ↵Frank Warmerdam
PTHREAD_MUTEX_RECURSIVE git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2342 4e78687f-474d-0410-85f9-8d5e500ac6b2
2013-06-19ensure core mutex created in recursive mode, forces use of -lpthreadFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2339 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-11-18Avoid unused warningsFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2119 4e78687f-474d-0410-85f9-8d5e500ac6b2
2011-08-07rename core_lock to avoid conflict on AIX (#55)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2082 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-01-24avoid win32/pthread mutex conflict on unixlike builds for win32 (#56)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1790 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-01-24correction mutex creation on win32 to be in unlocked state (#63)Frank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1788 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-09-23implement mutex locking for loading/caching grid shift filesFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1626 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-09-23fix up lock support on windows, enable by default, make public apiFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1625 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-06-17preliminary win32/pthread mutex implementationFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1594 4e78687f-474d-0410-85f9-8d5e500ac6b2
2009-03-09added initial init file cachingFrank Warmerdam
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1542 4e78687f-474d-0410-85f9-8d5e500ac6b2