mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 14:16:16 -04:00
Added a name to the RsMutex class.
You can enable the debugging of the waiting time for a lock of RsMutex in rsthreads.h with #define RSMUTEX_DEBUG 300 That means all locks waiting longer than 300ms are logged into the stderr. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4392 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
a94568ac33
commit
de87a89437
42 changed files with 103 additions and 64 deletions
|
@ -72,7 +72,7 @@ static const double RTT_ALPHA = 0.875;
|
|||
static double getCurrentTS();
|
||||
|
||||
TcpStream::TcpStream(UdpSubReceiver *lyr)
|
||||
:inSize(0), outSizeRead(0), outSizeNet(0),
|
||||
: tcpMtx("TcpStream"), inSize(0), outSizeRead(0), outSizeNet(0),
|
||||
state(TCP_CLOSED),
|
||||
inStreamActive(false),
|
||||
outStreamActive(false),
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
|
||||
|
||||
UdpPeerReceiver::UdpPeerReceiver(UdpPublisher *pub)
|
||||
:UdpSubReceiver(pub)
|
||||
:UdpSubReceiver(pub), peerMtx("UdpSubReceiver")
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ int displayUdpRelayPacketHeader(const void *data, const int size);
|
|||
#define MAX_RELAY_UDP_PACKET_SIZE 1024
|
||||
|
||||
UdpRelayReceiver::UdpRelayReceiver(UdpPublisher *pub)
|
||||
:UdpSubReceiver(pub)
|
||||
:UdpSubReceiver(pub), udppeerMtx("UdpSubReceiver"), relayMtx("UdpSubReceiver")
|
||||
{
|
||||
mClassLimit.resize(UDP_RELAY_NUM_CLASS);
|
||||
mClassCount.resize(UDP_RELAY_NUM_CLASS);
|
||||
|
|
|
@ -48,7 +48,7 @@ const double TOU_SUCCESS_LPF_FACTOR = 0.90;
|
|||
|
||||
|
||||
UdpStunner::UdpStunner(UdpPublisher *pub)
|
||||
:UdpSubReceiver(pub), eaddrKnown(false), eaddrStable(false),
|
||||
:UdpSubReceiver(pub), stunMtx("UdpSubReceiver"), eaddrKnown(false), eaddrStable(false),
|
||||
mStunLastRecvResp(0), mStunLastRecvAny(0),
|
||||
mStunLastSendStun(0), mStunLastSendAny(0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue