Added Mutex protection to the core comms (pqihandler + pqipersongrp).

also added a Mutex to the ServiceServer.

  This will hopefully fix the random threading crashes.



git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@829 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
drbob 2008-11-22 13:15:07 +00:00
parent c46b823261
commit 4610d1ddac
5 changed files with 93 additions and 17 deletions

View file

@ -28,6 +28,7 @@
#define PQI_SERVICE_HEADER
#include "pqi/pqi_base.h"
#include "util/rsthreads.h"
// PQI Service, is a generic lower layer on which services can run on.
//
@ -90,6 +91,7 @@ int tick();
private:
RsMutex srvMtx;
std::map<uint32_t, pqiService *> services;
std::map<uint32_t, pqiService *>::iterator rrit;