@@ -27,12 +27,12 @@ struct IPC_EXPORT chan_impl {
2727 static char const * name (ipc::handle_t h);
2828
2929 static std::size_t recv_count (ipc::handle_t h);
30- static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::size_t tm);
30+ static bool wait_for_recv (ipc::handle_t h, std::size_t r_count, std::uint64_t tm);
3131
32- static bool send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm);
33- static buff_t recv (ipc::handle_t h, std::size_t tm);
32+ static bool send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm);
33+ static buff_t recv (ipc::handle_t h, std::uint64_t tm);
3434
35- static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::size_t tm);
35+ static bool try_send (ipc::handle_t h, void const * data, std::size_t size, std::uint64_t tm);
3636 static buff_t try_recv (ipc::handle_t h);
3737};
3838
@@ -120,41 +120,41 @@ class chan_wrapper {
120120 return detail_t::recv_count (h_);
121121 }
122122
123- bool wait_for_recv (std::size_t r_count, std::size_t tm = invalid_value) const {
123+ bool wait_for_recv (std::size_t r_count, std::uint64_t tm = invalid_value) const {
124124 return detail_t::wait_for_recv (h_, r_count, tm);
125125 }
126126
127- static bool wait_for_recv (char const * name, std::size_t r_count, std::size_t tm = invalid_value) {
127+ static bool wait_for_recv (char const * name, std::size_t r_count, std::uint64_t tm = invalid_value) {
128128 return chan_wrapper (name).wait_for_recv (r_count, tm);
129129 }
130130
131131 /* *
132132 * If timeout, this function would call 'force_push' to send the data forcibly.
133133 */
134- bool send (void const * data, std::size_t size, std::size_t tm = default_timeout) {
134+ bool send (void const * data, std::size_t size, std::uint64_t tm = default_timeout) {
135135 return detail_t::send (h_, data, size, tm);
136136 }
137- bool send (buff_t const & buff, std::size_t tm = default_timeout) {
137+ bool send (buff_t const & buff, std::uint64_t tm = default_timeout) {
138138 return this ->send (buff.data (), buff.size (), tm);
139139 }
140- bool send (std::string const & str, std::size_t tm = default_timeout) {
140+ bool send (std::string const & str, std::uint64_t tm = default_timeout) {
141141 return this ->send (str.c_str (), str.size () + 1 , tm);
142142 }
143143
144144 /* *
145145 * If timeout, this function would just return false.
146146 */
147- bool try_send (void const * data, std::size_t size, std::size_t tm = default_timeout) {
147+ bool try_send (void const * data, std::size_t size, std::uint64_t tm = default_timeout) {
148148 return detail_t::try_send (h_, data, size, tm);
149149 }
150- bool try_send (buff_t const & buff, std::size_t tm = default_timeout) {
150+ bool try_send (buff_t const & buff, std::uint64_t tm = default_timeout) {
151151 return this ->try_send (buff.data (), buff.size (), tm);
152152 }
153- bool try_send (std::string const & str, std::size_t tm = default_timeout) {
153+ bool try_send (std::string const & str, std::uint64_t tm = default_timeout) {
154154 return this ->try_send (str.c_str (), str.size () + 1 , tm);
155155 }
156156
157- buff_t recv (std::size_t tm = invalid_value) {
157+ buff_t recv (std::uint64_t tm = invalid_value) {
158158 return detail_t::recv (h_, tm);
159159 }
160160
0 commit comments