- Added requests system
git-svn-id: svn://svn.gna.org/svn/sgpemv2/trunk@652 3ecf2c5c-341e-0410-92b4-d18e462d057c
This commit is contained in:
parent
d8cd3577a7
commit
56db7cd6a2
23 changed files with 980 additions and 40 deletions
|
@ -19,6 +19,7 @@
|
|||
// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
#include "static_thread.hh"
|
||||
#include "static_request.hh"
|
||||
|
||||
using namespace sgpem;
|
||||
using std::vector;
|
||||
|
@ -58,14 +59,13 @@ StaticThread::remove_request(StaticRequest* request)
|
|||
|
||||
vector<StaticRequest*>::iterator it;
|
||||
|
||||
// FIXME uncomment once requests are compelted
|
||||
//it = std::find(_static_requests.begin(), _static_requests.end(), request);
|
||||
it = std::find(_static_requests.begin(), _static_requests.end(), request);
|
||||
|
||||
//if(it != _static_requests.end())
|
||||
//{
|
||||
// _static_requests.erase(it);
|
||||
// delete *it;
|
||||
//}
|
||||
if(it != _static_requests.end())
|
||||
{
|
||||
_static_requests.erase(it);
|
||||
delete *it;
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue