@@ -291,7 +291,7 @@ struct conn_info_head {
291291};
292292
293293template <typename W, typename F>
294- bool wait_for (W& waiter, F&& pred, std::size_t tm) {
294+ bool wait_for (W& waiter, F&& pred, std::uint64_t tm) {
295295 if (tm == 0 ) return !pred ();
296296 for (unsigned k = 0 ; pred ();) {
297297 bool loop = true , ret = true ;
@@ -403,7 +403,7 @@ static std::size_t recv_count(ipc::handle_t h) noexcept {
403403 return que->conn_count ();
404404}
405405
406- static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::size_t tm) {
406+ static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::uint64_t tm) {
407407 auto que = queue_of (h);
408408 if (que == nullptr ) {
409409 return false ;
@@ -475,7 +475,7 @@ static bool send(F&& gen_push, ipc::handle_t h, void const * data, std::size_t s
475475 return true ;
476476}
477477
478- static bool send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
478+ static bool send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
479479 return send ([tm](auto info, auto que, auto msg_id) {
480480 return [tm, info, que, msg_id](std::int32_t remain, void const * data, std::size_t size) {
481481 if (!wait_for (info->wt_waiter_ , [&] {
@@ -500,7 +500,7 @@ static bool send(ipc::handle_t h, void const * data, std::size_t size, std::size
500500 }, h, data, size);
501501}
502502
503- static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
503+ static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
504504 return send ([tm](auto info, auto que, auto msg_id) {
505505 return [tm, info, que, msg_id](std::int32_t remain, void const * data, std::size_t size) {
506506 if (!wait_for (info->wt_waiter_ , [&] {
@@ -514,7 +514,7 @@ static bool try_send(ipc::handle_t h, void const * data, std::size_t size, std::
514514 }, h, data, size);
515515}
516516
517- static ipc::buff_t recv (ipc::handle_t h, std::size_t tm) {
517+ static ipc::buff_t recv (ipc::handle_t h, std::uint64_t tm) {
518518 auto que = queue_of (h);
519519 if (que == nullptr ) {
520520 ipc::error (" fail: recv, queue_of(h) == nullptr\n " );
@@ -630,22 +630,22 @@ std::size_t chan_impl<Flag>::recv_count(ipc::handle_t h) {
630630}
631631
632632template <typename Flag>
633- bool chan_impl<Flag>::wait_for_recv(ipc::handle_t h, std::size_t r_count, std::size_t tm) {
633+ bool chan_impl<Flag>::wait_for_recv(ipc::handle_t h, std::size_t r_count, std::uint64_t tm) {
634634 return detail_impl<policy_t <Flag>>::wait_for_recv (h, r_count, tm);
635635}
636636
637637template <typename Flag>
638- bool chan_impl<Flag>::send(ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
638+ bool chan_impl<Flag>::send(ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
639639 return detail_impl<policy_t <Flag>>::send (h, data, size, tm);
640640}
641641
642642template <typename Flag>
643- buff_t chan_impl<Flag>::recv(ipc::handle_t h, std::size_t tm) {
643+ buff_t chan_impl<Flag>::recv(ipc::handle_t h, std::uint64_t tm) {
644644 return detail_impl<policy_t <Flag>>::recv (h, tm);
645645}
646646
647647template <typename Flag>
648- bool chan_impl<Flag>::try_send(ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
648+ bool chan_impl<Flag>::try_send(ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
649649 return detail_impl<policy_t <Flag>>::try_send (h, data, size, tm);
650650}
651651
0 commit comments