mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-17 21:40:36 -04:00
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:
parent
c46b823261
commit
4610d1ddac
5 changed files with 93 additions and 17 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue