You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4cxx-dev@logging.apache.org by ca...@apache.org on 2007/10/02 03:33:35 UTC
svn commit: r581124 - in
/logging/log4cxx/trunk/src/main/include/log4cxx/helpers: synchronized.h
thread.h threadlocal.h
Author: carnold
Date: Mon Oct 1 18:33:34 2007
New Revision: 581124
URL: http://svn.apache.org/viewvc?rev=581124&view=rev
Log:
LOGCXX-129: header-check fixes
Modified:
logging/log4cxx/trunk/src/main/include/log4cxx/helpers/synchronized.h
logging/log4cxx/trunk/src/main/include/log4cxx/helpers/thread.h
logging/log4cxx/trunk/src/main/include/log4cxx/helpers/threadlocal.h
Modified: logging/log4cxx/trunk/src/main/include/log4cxx/helpers/synchronized.h
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/include/log4cxx/helpers/synchronized.h?rev=581124&r1=581123&r2=581124&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/include/log4cxx/helpers/synchronized.h (original)
+++ logging/log4cxx/trunk/src/main/include/log4cxx/helpers/synchronized.h Mon Oct 1 18:33:34 2007
@@ -17,7 +17,7 @@
#ifndef _LOG4CXX_HELPERS_SYNCHRONIZED_H
#define _LOG4CXX_HELPERS_SYNCHRONIZED_H
-
+#include <log4cxx/log4cxx.h>
namespace log4cxx
{
Modified: logging/log4cxx/trunk/src/main/include/log4cxx/helpers/thread.h
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/include/log4cxx/helpers/thread.h?rev=581124&r1=581123&r2=581124&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/include/log4cxx/helpers/thread.h (original)
+++ logging/log4cxx/trunk/src/main/include/log4cxx/helpers/thread.h Mon Oct 1 18:33:34 2007
@@ -131,6 +131,8 @@
*/
void* getData() const;
private:
+ LaunchPackage(const LaunchPackage&);
+ LaunchPackage& operator=(const LaunchPackage&);
Thread* thread;
Runnable runnable;
void* data;
@@ -153,6 +155,8 @@
*/
~LaunchStatus();
private:
+ LaunchStatus(const LaunchStatus&);
+ LaunchStatus& operator=(const LaunchStatus&);
volatile unsigned int* alive;
};
Modified: logging/log4cxx/trunk/src/main/include/log4cxx/helpers/threadlocal.h
URL: http://svn.apache.org/viewvc/logging/log4cxx/trunk/src/main/include/log4cxx/helpers/threadlocal.h?rev=581124&r1=581123&r2=581124&view=diff
==============================================================================
--- logging/log4cxx/trunk/src/main/include/log4cxx/helpers/threadlocal.h (original)
+++ logging/log4cxx/trunk/src/main/include/log4cxx/helpers/threadlocal.h Mon Oct 1 18:33:34 2007
@@ -63,6 +63,15 @@
void* get();
private:
+ /**
+ * Prevent use of default copy constructor.
+ */
+ ThreadLocal(const ThreadLocal&);
+ /**
+ * Prevent use of default assignment operator.
+ */
+ ThreadLocal& operator=(const ThreadLocal&);
+
log4cxx_pool_t* pool;
log4cxx_threadkey_t* key;
};