@@ -456,8 +456,7 @@ bool Event_set::sync_wait_impl(const Fine_duration& max_wait, Error_code* err_co
456456
457457bool Event_set::sync_wait (Error_code* err_code)
458458{
459- using boost::chrono::microseconds;
460- return sync_wait (microseconds (microseconds::max ()), err_code); // Wait indefinitely. May throw.
459+ return sync_wait (boost::chrono::microseconds::max (), err_code); // Wait indefinitely. May throw.
461460}
462461
463462void Event_set::close (Error_code* err_code)
@@ -736,9 +735,9 @@ Event_set::Ev_type_to_socks_map Event_set::empty_ev_type_to_socks_map() // Stati
736735 return Ev_type_to_socks_map
737736 {{
738737 // Linked_hash_map order is significant. Iteration will occur in this canonical order in logs, etc.
739- { Event_type::S_PEER_SOCKET_READABLE, Sockets () },
740- { Event_type::S_PEER_SOCKET_WRITABLE, Sockets () },
741- { Event_type::S_SERVER_SOCKET_ACCEPTABLE, Sockets () }
738+ { Event_type::S_PEER_SOCKET_READABLE, Sockets{} },
739+ { Event_type::S_PEER_SOCKET_WRITABLE, Sockets{} },
740+ { Event_type::S_SERVER_SOCKET_ACCEPTABLE, Sockets{} }
742741 }};
743742}
744743
@@ -1425,7 +1424,7 @@ void Node::interrupt_all_waits_worker()
14251424 for (Event_set::Ptr event_set : m_event_sets)
14261425 {
14271426 // Work on one Event_set at a time. Lock it.
1428- Event_set::Lock_guard lock ( event_set->m_mutex ) ;
1427+ Event_set::Lock_guard lock{ event_set->m_mutex } ;
14291428
14301429 if (event_set->m_state == Event_set::State::S_WAITING)
14311430 {
0 commit comments