mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
put some pqissl warnings in log file only in debug mode, since this is quite CPU demanding
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4590 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
62b2de63b7
commit
c8e2a4c828
@ -1677,12 +1677,14 @@ int pqissl::isactive()
|
|||||||
|
|
||||||
bool pqissl::moretoread()
|
bool pqissl::moretoread()
|
||||||
{
|
{
|
||||||
|
#ifdef PQISSL_DEBUG
|
||||||
{
|
{
|
||||||
std::ostringstream out;
|
std::ostringstream out;
|
||||||
out << "pqissl::moretoread()";
|
out << "pqissl::moretoread()";
|
||||||
out << " polling socket (" << sockfd << ")";
|
out << " polling socket (" << sockfd << ")";
|
||||||
rslog(RSL_DEBUG_ALL, pqisslzone, out.str());
|
rslog(RSL_DEBUG_ALL, pqisslzone, out.str());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
fd_set ReadFDs, WriteFDs, ExceptFDs;
|
fd_set ReadFDs, WriteFDs, ExceptFDs;
|
||||||
FD_ZERO(&ReadFDs);
|
FD_ZERO(&ReadFDs);
|
||||||
@ -1747,8 +1749,10 @@ bool pqissl::moretoread()
|
|||||||
|
|
||||||
bool pqissl::cansend()
|
bool pqissl::cansend()
|
||||||
{
|
{
|
||||||
|
#ifdef PQISSL_DEBUG
|
||||||
rslog(RSL_DEBUG_ALL, pqisslzone,
|
rslog(RSL_DEBUG_ALL, pqisslzone,
|
||||||
"pqissl::cansend() polling socket!");
|
"pqissl::cansend() polling socket!");
|
||||||
|
#endif
|
||||||
|
|
||||||
// Interestingly - This code might be portable....
|
// Interestingly - This code might be portable....
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user