ASIO: Why does do_one use a one second timeout and loop whan called in blocking mode?

28 Nov
2007
28 Nov
'07
2:20 p.m.
The implementation of do_one in win_iocp_io_service.hpp causes the waiting thread to wakeup every second, but I can't see any reason for doing so. The wakeup causes unnecessary context switches, which could have an impact on a busy machine, so what is the reasoning behind them? Thanks. Jim ________________________________________________________________________ This e-mail, and any attachment, is confidential. If you have received it in error, do not use or disclose the information in any way, notify me immediately, and please delete it from your system. ________________________________________________________________________
6404
Age (days ago)
6404
Last active (days ago)
0 comments
1 participants
participants (1)
-
James Talbut