summaryrefslogtreecommitdiff
path: root/wait.h
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-06-10 05:00:45 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-06-10 05:00:45 +0000
commit2660779a26b8ba285b0ab172c8f48d50dd1da918 (patch)
tree8ea8f972be66af828051026a138282769e980adb /wait.h
parent79714ed200a1687f3ed63bc8ff6723a5f99b59f0 (diff)
downloadcryptopp-2660779a26b8ba285b0ab172c8f48d50dd1da918.tar.gz
detect no-wait loop in debug build
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@79 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'wait.h')
-rw-r--r--wait.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/wait.h b/wait.h
index db9caa6..2951efe 100644
--- a/wait.h
+++ b/wait.h
@@ -14,6 +14,10 @@
#include <sys/types.h>
#endif
+#ifndef NDEBUG
+#include "hrtimer.h"
+#endif
+
NAMESPACE_BEGIN(CryptoPP)
struct WaitingThreadData;
@@ -57,6 +61,16 @@ private:
int m_maxFd;
#endif
bool m_noWait;
+
+#ifndef NDEBUG
+#ifdef USE_WINDOWS_STYLE_SOCKETS
+ DWORD m_lastResult;
+#else
+ int m_lastResult;
+#endif
+ unsigned int m_sameResultCount;
+ Timer m_timer;
+#endif
};
NAMESPACE_END