xalan-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dbert...@apache.org
Subject cvs commit: xml-xalan/c/Tests/Threads ThreadTest.cpp
Date Fri, 02 Jan 2004 18:14:57 GMT
dbertoni    2004/01/02 10:14:57

  Modified:    c/Tests/Threads ThreadTest.cpp
  Log:
  Cleaned up a few glitches.
  
  Revision  Changes    Path
  1.32      +5 -5      xml-xalan/c/Tests/Threads/ThreadTest.cpp
  
  Index: ThreadTest.cpp
  ===================================================================
  RCS file: /home/cvs/xml-xalan/c/Tests/Threads/ThreadTest.cpp,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- ThreadTest.cpp	4 Dec 2003 21:47:45 -0000	1.31
  +++ ThreadTest.cpp	2 Jan 2004 18:14:57 -0000	1.32
  @@ -156,9 +156,9 @@
   
   private:
   
  -	mutable XMLMutexType	m_mutex;
  +	XMLMutexType	m_mutex;
   
  -	long					m_counter;
  +	long			m_counter;
   };
   
   
  @@ -180,7 +180,7 @@
   void
   SynchronizedCounter::increment()
   {
  -	XMLMutexLockType	theLock(&m_mutex);
  +	const XMLMutexLockType	theLock(&m_mutex);
   
   	if (m_counter < LONG_MAX)
   	{
  @@ -193,7 +193,7 @@
   void
   SynchronizedCounter::decrement()
   {
  -	XMLMutexLockType	theLock(&m_mutex);
  +	const XMLMutexLockType	theLock(&m_mutex);
   
   	if (m_counter > 0)
   	{
  @@ -215,7 +215,7 @@
   ThreadInfo
   {
   	ThreadInfo(
  -			unsigned int			theThreadNumber = 0,
  +			long					theThreadNumber = 0L,
   			SynchronizedCounter*	theCounter = 0) :
   		m_threadNumber(theThreadNumber),
   		m_counter(theCounter),
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org


Mime
View raw message