summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2005-01-01 14:25:02 +0000
committerrpj <rpj>2005-01-01 14:25:02 +0000
commitc047ca63139fd3b9e0dedc224dffe04666204dd1 (patch)
tree75ce525b318a53e25a95a44d6db9f77b53efdabb
parentb784d0336a41cab82fd3099b865a7d8e07cf1a23 (diff)
-rw-r--r--ANNOUNCE2
-rw-r--r--pthread.h4
-rw-r--r--pthread_mutex_lock.c13
-rw-r--r--version.rc2
4 files changed, 11 insertions, 10 deletions
diff --git a/ANNOUNCE b/ANNOUNCE
index 778c95a..a10af55 100644
--- a/ANNOUNCE
+++ b/ANNOUNCE
@@ -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
diff --git a/pthread.h b/pthread.h
index ce83f34..199940e 100644
--- a/pthread.h
+++ b/pthread.h
@@ -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;
+ }
}
}
}
diff --git a/version.rc b/version.rc
index 128f444..721e612 100644
--- a/version.rc
+++ b/version.rc
@@ -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