summaryrefslogtreecommitdiff
path: root/wait.cpp
diff options
context:
space:
mode:
authorweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-03-25 02:11:53 +0000
committerweidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0>2003-03-25 02:11:53 +0000
commit79694912becd37f5f0077464350f3db55dd2ca7c (patch)
treec0941e611df79f42cd10632c1cd2fd4dc2895078 /wait.cpp
parentd1302bdf601282b27a681b121b2663841db92353 (diff)
downloadcryptopp-79694912becd37f5f0077464350f3db55dd2ca7c.tar.gz
minor changes
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@53 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'wait.cpp')
-rw-r--r--wait.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/wait.cpp b/wait.cpp
index 05d485b..dfcb60c 100644
--- a/wait.cpp
+++ b/wait.cpp
@@ -15,6 +15,15 @@
NAMESPACE_BEGIN(CryptoPP)
+unsigned int WaitObjectContainer::MaxWaitObjects()
+{
+#ifdef USE_WINDOWS_STYLE_SOCKETS
+ return MAXIMUM_WAIT_OBJECTS * (MAXIMUM_WAIT_OBJECTS-1);
+#else
+ return FD_SETSIZE;
+#endif
+}
+
WaitObjectContainer::WaitObjectContainer()
{
Clear();