diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-03-20 20:39:59 +0000 |
commit | ec56662ba7b4cfaf1335a88854127fac06f376aa (patch) | |
tree | c85dd5aa14780d400b30c133fa3704b044d1bbb2 /wait.cpp | |
parent | 4feec7c333fd1ec92d1dd8c7f741249e3919ec5e (diff) | |
download | cryptopp-ec56662ba7b4cfaf1335a88854127fac06f376aa.tar.gz |
fix warnings for VC7 and GCC
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@43 57ff6487-cd31-0410-9ec3-f628ee90f5f0
Diffstat (limited to 'wait.cpp')
-rw-r--r-- | wait.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -94,7 +94,7 @@ DWORD WINAPI WaitingThread(LPVOID lParam) handles[0] = thread.stopWaiting; std::copy(thread.waitHandles, thread.waitHandles+thread.count, handles.begin()+1); - DWORD result = ::WaitForMultipleObjects(handles.size(), handles.begin(), FALSE, INFINITE); + DWORD result = ::WaitForMultipleObjects(handles.size(), &handles[0], FALSE, INFINITE); if (result == WAIT_OBJECT_0) continue; // another thread finished waiting first, so do nothing @@ -154,7 +154,7 @@ bool WaitObjectContainer::Wait(unsigned long milliseconds) Sleep(0); if (i<nThreads) { - thread.waitHandles = m_handles.begin() + i*WAIT_OBJECTS_PER_THREAD; + thread.waitHandles = &m_handles[i*WAIT_OBJECTS_PER_THREAD]; thread.count = STDMIN(WAIT_OBJECTS_PER_THREAD, m_handles.size() - i*WAIT_OBJECTS_PER_THREAD); thread.error = &error; } |