mirror of
https://github.com/solemnwarning/directplay-lite
synced 2024-12-30 16:45:37 +01:00
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.
15 lines
237 B
C++
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 */
|