@@ -300,7 +300,7 @@ struct conn_info_head {
300300};
301301
302302template <typename W, typename F>
303- bool wait_for (W& waiter, F&& pred, std::size_t tm) {
303+ bool wait_for (W& waiter, F&& pred, std::uint64_t tm) {
304304 if (tm == 0 ) return !pred ();
305305 for (unsigned k = 0 ; pred ();) {
306306 bool loop = true , ret = true ;
@@ -414,7 +414,7 @@ static std::size_t recv_count(ipc::handle_t h) noexcept {
414414 return que->conn_count ();
415415}
416416
417- static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::size_t tm) {
417+ static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::uint64_t tm) {
418418 auto que = queue_of (h);
419419 if (que == nullptr ) {
420420 return false ;
@@ -487,7 +487,7 @@ static bool send(F&& gen_push, ipc::handle_t h, void const * data, std::size_t s
487487 return true ;
488488}
489489
490- static bool send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
490+ static bool send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
491491 return send ([tm](auto info, auto que, auto msg_id) {
492492 return [tm, info, que, msg_id](std::int32_t remain, void const * data, std::size_t size) {
493493 if (!wait_for (info->wt_waiter_ , [&] {
@@ -508,7 +508,7 @@ static bool send(ipc::handle_t h, void const * data, std::size_t size, std::size
508508 }, h, data, size);
509509}
510510
511- static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
511+ static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
512512 return send ([tm](auto info, auto que, auto msg_id) {
513513 return [tm, info, que, msg_id](std::int32_t remain, void const * data, std::size_t size) {
514514 if (!wait_for (info->wt_waiter_ , [&] {
@@ -524,7 +524,7 @@ static bool try_send(ipc::handle_t h, void const * data, std::size_t size, std::
524524 }, h, data, size);
525525}
526526
527- static ipc::buff_t recv (ipc::handle_t h, std::size_t tm) {
527+ static ipc::buff_t recv (ipc::handle_t h, std::uint64_t tm) {
528528 auto que = queue_of (h);
529529 if (que == nullptr ) {
530530 ipc::error (" fail: recv, queue_of(h) == nullptr\n " );
@@ -666,22 +666,22 @@ std::size_t chan_impl<Flag>::recv_count(ipc::handle_t h) {
666666}
667667
668668template <typename Flag>
669- bool chan_impl<Flag>::wait_for_recv(ipc::handle_t h, std::size_t r_count, std::size_t tm) {
669+ bool chan_impl<Flag>::wait_for_recv(ipc::handle_t h, std::size_t r_count, std::uint64_t tm) {
670670 return detail_impl<policy_t <Flag>>::wait_for_recv (h, r_count, tm);
671671}
672672
673673template <typename Flag>
674- bool chan_impl<Flag>::send(ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
674+ bool chan_impl<Flag>::send(ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
675675 return detail_impl<policy_t <Flag>>::send (h, data, size, tm);
676676}
677677
678678template <typename Flag>
679- buff_t chan_impl<Flag>::recv(ipc::handle_t h, std::size_t tm) {
679+ buff_t chan_impl<Flag>::recv(ipc::handle_t h, std::uint64_t tm) {
680680 return detail_impl<policy_t <Flag>>::recv (h, tm);
681681}
682682
683683template <typename Flag>
684- bool chan_impl<Flag>::try_send(ipc::handle_t h, void const * data, std::size_t size, std::size_t tm) {
684+ bool chan_impl<Flag>::try_send(ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm) {
685685 return detail_impl<policy_t <Flag>>::try_send (h, data, size, tm);
686686}
687687
0 commit comments