1
0
mirror of https://github.com/solemnwarning/directplay-lite synced 2024-12-30 16:45:37 +01:00
Daniel Collins fffbfe3ce4 Don't poll for TCP recv() events when processing one.
Clearing FD_RECV and FD_CLOSE from the event flags when processing a
recv() event will prevent the other worker threads associated with that
socket from waking up repeatedly, checking recv_busy, then sleeping
without having done anything, wasting time and potentially preventing
them from servicing their other sockets.
2018-10-06 14:07:51 +01:00

15 lines
237 B
C++

#ifndef DPLITE_LOG_HPP
#define DPLITE_LOG_HPP
#include <string>
void log_init();
void log_fini();
bool log_trace_enabled();
void log_printf(const char *fmt, ...);
std::string win_strerror(DWORD errnum);
#endif /* !DPLITE_LOG_HPP */