mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -05:00
More disabled debugging.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6158 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
65e3f02bb0
commit
ebce79f9fa
@ -85,9 +85,11 @@ void RsTickEvent::tick_events()
|
|||||||
|
|
||||||
for(it = toProcess.begin(); it != toProcess.end(); it++)
|
for(it = toProcess.begin(); it != toProcess.end(); it++)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_EVENTS
|
||||||
std::cerr << "RsTickEvent::tick_events() calling handle_event(";
|
std::cerr << "RsTickEvent::tick_events() calling handle_event(";
|
||||||
std::cerr << it->mEventType << ", " << it->mEventLabel << ")";
|
std::cerr << it->mEventType << ", " << it->mEventLabel << ")";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
#endif // DEBUG_EVENTS
|
||||||
handle_event(it->mEventType, it->mEventLabel);
|
handle_event(it->mEventType, it->mEventLabel);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -121,8 +123,10 @@ void RsTickEvent::schedule_in(uint32_t event_type, uint32_t in_secs)
|
|||||||
|
|
||||||
void RsTickEvent::schedule_in(uint32_t event_type, uint32_t in_secs, const std::string &elabel)
|
void RsTickEvent::schedule_in(uint32_t event_type, uint32_t in_secs, const std::string &elabel)
|
||||||
{
|
{
|
||||||
|
#ifdef DEBUG_EVENTS
|
||||||
std::cerr << "RsTickEvent::schedule_in(" << event_type << ", " << elabel << ") in " << in_secs << " secs";
|
std::cerr << "RsTickEvent::schedule_in(" << event_type << ", " << elabel << ") in " << in_secs << " secs";
|
||||||
std::cerr << std::endl;
|
std::cerr << std::endl;
|
||||||
|
#endif // DEBUG_EVENTS
|
||||||
|
|
||||||
time_t event_time = time(NULL) + in_secs;
|
time_t event_time = time(NULL) + in_secs;
|
||||||
RsTickEvent::schedule_event(event_type, event_time, elabel);
|
RsTickEvent::schedule_event(event_type, event_time, elabel);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user