mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-06 16:15:23 -04:00
* Memory Leak fixed in BinaryData.
* Fixed up Variable Ticking -> max = 1.0 sec now. * Removed debug output which was massively increasing CPU load. * Removed some old code from p3face-server.cc git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@461 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
d69c2f72f1
commit
99aab9cea4
7 changed files with 81 additions and 36 deletions
|
@ -53,7 +53,10 @@
|
|||
|
||||
const int fldxsrvrzone = 47659;
|
||||
|
||||
/****
|
||||
#define SERVER_DEBUG 1
|
||||
#define DEBUG_TICK 1
|
||||
****/
|
||||
|
||||
filedexserver::filedexserver()
|
||||
:p3Config(CONFIG_TYPE_FSERVER),
|
||||
|
@ -100,16 +103,25 @@ int filedexserver::tick()
|
|||
if (0 < pqisi -> tick())
|
||||
{
|
||||
moreToTick = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "filedexserver::tick() moreToTick from pqisi" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (0 < handleInputQueues())
|
||||
{
|
||||
moreToTick = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "filedexserver::tick() moreToTick from InputQueues" << std::endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
if (0 < handleOutputQueues())
|
||||
{
|
||||
moreToTick = 1;
|
||||
#ifdef DEBUG_TICK
|
||||
std::cerr << "filedexserver::tick() moreToTick from OutputQueues" << std::endl;
|
||||
#endif
|
||||
}
|
||||
return moreToTick;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue