You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by pe...@apache.org on 2001/10/24 01:12:48 UTC
cvs commit: xml-xerces/c/src/util/Platforms/Tru64 Tru64PlatformUtils.cpp
peiyongz 01/10/23 16:12:48
Modified: c/src/util/Platforms/Tru64 Tru64PlatformUtils.cpp
Log:
[Bug#880] patch to PlatformUtils:init()/term() and related. from Mark Weaver
Revision Changes Path
1.4 +8 -3 xml-xerces/c/src/util/Platforms/Tru64/Tru64PlatformUtils.cpp
Index: Tru64PlatformUtils.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/util/Platforms/Tru64/Tru64PlatformUtils.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Tru64PlatformUtils.cpp 2001/09/13 16:46:00 1.3
+++ Tru64PlatformUtils.cpp 2001/10/23 23:12:48 1.4
@@ -55,7 +55,7 @@
*/
/*
- * $Id: Tru64PlatformUtils.cpp,v 1.3 2001/09/13 16:46:00 knoaman Exp $
+ * $Id: Tru64PlatformUtils.cpp,v 1.4 2001/10/23 23:12:48 peiyongz Exp $
*/
// ---------------------------------------------------------------------------
@@ -178,8 +178,11 @@
gAtomicOpMutex = new pthread_mutex_t;
- if (pthread_mutex_init(gAtomicOpMutex, NULL))
+ if (pthread_mutex_init(gAtomicOpMutex, NULL)) {
+ delete gAtomicOpMutex;
+ gAtomicOpMutex = 0;
panic( XMLPlatformUtils::Panic_SystemInit );
+ }
}
@@ -706,5 +709,7 @@
void XMLPlatformUtils::platformTerm()
{
- // We don't have any termination requirements at this time
+ pthread_mutex_destroy(gAtomicOpMutex);
+ delete gAtomicOpMutex;
+ gAtomicOpMutex = 0;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org