Fixed handle leak on win32 and preparing 2.0 beta 8.

This commit is contained in:
Federico Di Gregorio 2006-02-11 11:01:17 +00:00
parent d14a2c0639
commit 77398c759e
3 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2006-02-11 Federico Di Gregorio <fog@initd.org>
* Release 2.0 beta 8.
* psycopg/config.h: applied patch from Jason to fix handle leak on
win32, as documented in #92.
2006-02-11 Federico Di Gregorio <fog@initd.org> 2006-02-11 Federico Di Gregorio <fog@initd.org>
* Release 2.0 beta 7. * Release 2.0 beta 7.

5
NEWS
View File

@ -1,3 +1,8 @@
What's new in psycopg 2.0 beta 8
--------------------------------
* Fixed handle leak on win32.
What's new in psycopg 2.0 beta 7 What's new in psycopg 2.0 beta 7
-------------------------------- --------------------------------

View File

@ -57,7 +57,7 @@ static void Dprintf(const char *fmt, ...) {}
#define pthread_condvar_t HANDLE #define pthread_condvar_t HANDLE
#define pthread_mutex_lock(object) WaitForSingleObject(object, INFINITE) #define pthread_mutex_lock(object) WaitForSingleObject(object, INFINITE)
#define pthread_mutex_unlock(object) ReleaseMutex(object) #define pthread_mutex_unlock(object) ReleaseMutex(object)
#define pthread_mutex_destroy(ref) (CloseHandle(ref)) #define pthread_mutex_destroy(ref) (CloseHandle(*(ref)))
/* convert pthread mutex to native mutex */ /* convert pthread mutex to native mutex */
static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake) static int pthread_mutex_init(pthread_mutex_t *mutex, void* fake)
{ {