2nd attempt at fixing tcponudp bug. To be tested.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7740 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2014-12-08 22:17:06 +00:00
parent d8d5fdd24c
commit 71cd1e0030

View file

@ -46,6 +46,7 @@ bool pqithreadstreamer::RecvItem(RsItem *item)
int pqithreadstreamer::tick()
{
RsStackMutex stack(mThreadMutex);
tick_bio();
return 0;
@ -146,7 +147,10 @@ int pqithreadstreamer::data_tick()
//std::cerr << "pqithreadstream::data_tick() tick_recv";
//std::cerr << std::endl;
{
RsStackMutex stack(mThreadMutex);
tick_recv(recv_timeout);
}
// Push Items, Outside of Mutex.
RsItem *incoming = NULL;
@ -158,7 +162,10 @@ int pqithreadstreamer::data_tick()
//std::cerr << "pqithreadstream::data_tick() tick_send";
//std::cerr << std::endl;
{
RsStackMutex stack(mThreadMutex);
tick_send(0);
}
if (sleep_period)
{