|
From: <fe...@us...> - 2012-04-25 18:09:52
|
Revision: 139
http://ehs.svn.sourceforge.net/ehs/?rev=139&view=rev
Author: felfert
Date: 2012-04-25 18:09:46 +0000 (Wed, 25 Apr 2012)
Log Message:
-----------
- Better thread safety
Modified Paths:
--------------
trunk/ehs.cpp
Modified: trunk/ehs.cpp
===================================================================
--- trunk/ehs.cpp 2012-04-25 01:51:36 UTC (rev 138)
+++ trunk/ehs.cpp 2012-04-25 18:09:46 UTC (rev 139)
@@ -868,11 +868,11 @@
// push the object on to the list
m_oResponseQueue.push_back(ehs_move(response));
while (!m_oResponseQueue.empty()) {
- GenericResponse *r = m_oResponseQueue.front().get();
+ ehs_autoptr<GenericResponse> tmp = ehs_move(m_oResponseQueue.front());
+ m_oResponseQueue.pop_front();
mutex.Unlock();
- SendResponse(r);
+ SendResponse(tmp.get());
mutex.Lock();
- m_oResponseQueue.pop_front();
// set last activity to the current time for idle purposes
UpdateLastActivity();
EHS_TRACE("Sending %d response(s) to %x", m_nResponses, this);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|