Compare commits

...
1 Commits
Author SHA1 Message Date
Frank Warmerdam c2525b5c88 correct mutex creation on win32 to be in unlocked state (#63)
git-svn-id: http://svn.osgeo.org/metacrs/proj/branches/4.7@1832 4e78687f-474d-0410-85f9-8d5e500ac6b2
2010-03-28 22:13:28 +00:00
2 changed files with 8 additions and 3 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-01-25 Frank Warmerdam <warmerdam@pobox.com>
* src/pj_mutex.c: fix creation of mutex on win32 to be in
unacquired state in pj_init_lock to avoid an extra reference. (#63)
2009-09-24 Frank Warmerdam <warmerdam@pobox.com>
* nad/Makefile.am: add ntv2 and ignf testing if grid shift files
+3 -3
View File
@@ -181,8 +181,8 @@ void pj_release_lock()
{
if( mutex_lock == NULL )
pj_init_lock();
ReleaseMutex( mutex_lock );
else
ReleaseMutex( mutex_lock );
}
/************************************************************************/
@@ -205,7 +205,7 @@ static void pj_init_lock()
{
if( mutex_lock == NULL )
mutex_lock = CreateMutex( NULL, TRUE, NULL );
mutex_lock = CreateMutex( NULL, FALSE, NULL );
}
#endif // def MUTEX_win32