diff options
| author | rpj <rpj> | 2005-01-01 14:25:02 +0000 | 
|---|---|---|
| committer | rpj <rpj> | 2005-01-01 14:25:02 +0000 | 
| commit | c047ca63139fd3b9e0dedc224dffe04666204dd1 (patch) | |
| tree | 75ce525b318a53e25a95a44d6db9f77b53efdabb | |
| parent | b784d0336a41cab82fd3099b865a7d8e07cf1a23 (diff) | |
| -rw-r--r-- | ANNOUNCE | 2 | ||||
| -rw-r--r-- | pthread.h | 4 | ||||
| -rw-r--r-- | pthread_mutex_lock.c | 13 | ||||
| -rw-r--r-- | version.rc | 2 | 
4 files changed, 11 insertions, 10 deletions
| @@ -1,4 +1,4 @@ -		 PTHREADS-WIN32 SNAPSHOT 2004-11-22
 +		 PTHREADS-WIN32 SNAPSHOT 2005-01-02
  		 ----------------------------------
  	 Web Site: http://sources.redhat.com/pthreads-win32/
  	FTP Site: ftp://sources.redhat.com/pub/pthreads-win32
 @@ -37,8 +37,8 @@   * See the README file for an explanation of the pthreads-win32 version   * numbering scheme and how the DLL is named etc.   */ -#define PTW32_VERSION 1,0,0,0 -#define PTW32_VERSION_STRING "1, 0, 0, 0\0" +#define PTW32_VERSION 1,1,0,0 +#define PTW32_VERSION_STRING "1, 1, 0, 0\0"  /* There are three implementations of cancel cleanup.   * Note that pthread.h is included in both application diff --git a/pthread_mutex_lock.c b/pthread_mutex_lock.c index 870208b..ce5e5f6 100644 --- a/pthread_mutex_lock.c +++ b/pthread_mutex_lock.c @@ -114,17 +114,18 @@ pthread_mutex_lock (pthread_mutex_t * mutex)                                (LPLONG) &mx->lock_idx,  			      (LONG) -1) != 0)  		{ -	          if (WAIT_OBJECT_0 == WaitForSingleObject (mx->event, INFINITE)) -	            { -		      mx->recursive_count = 1; -		      mx->ownerThread = self; -	            } -		  else +	          if (WAIT_OBJECT_0 != WaitForSingleObject (mx->event, INFINITE))  		    {  	              result = EINVAL;  		      break;  		    }  		} + +	      if (0 == result) +		{ +		  mx->recursive_count = 1; +		  mx->ownerThread = self; +		}  	    }  	}      } @@ -73,7 +73,7 @@ BEGIN              VALUE "InternalName", PTW32_VERSIONINFO_NAME              VALUE "OriginalFilename", PTW32_VERSIONINFO_NAME              VALUE "CompanyName", "Open Source Software community project\0" -            VALUE "LegalCopyright", "Copyright (C) Project contributors 1998-2004\0" +            VALUE "LegalCopyright", "Copyright (C) Project contributors 1998-2005\0"              VALUE "Licence", "LGPL\0"              VALUE "Info", "http://sources.redhat.com/pthreads-win32/\0"  	    VALUE "Comment", PTW32_VERSIONINFO_COMMENT | 
