Home
last modified time | relevance | path

Searched refs:bind (Results 1 – 25 of 50) sorted by relevance

12

/commonlibrary/c_utils/base/test/unittest/common/
Dutils_rwlock_test.cpp75 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1)));
79 thread second(bind(&TestRWLock::ReadStr, ref(test), ref(readOut1)));
80 thread third(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_2)));
82 thread fourth(bind(&TestRWLock::ReadStr, ref(test), ref(readOut2)));
104 thread first(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_1)));
108 thread second(bind(&TestRWLock::ReadStr, ref(test), ref(readOut1)));
109 thread third(bind(&TestRWLock::WriteStr, ref(test), ref(WRITE_IN_2)));
111 thread fourth(bind(&TestRWLock::ReadStr, ref(test), ref(readOut2)));
Dutils_thread_pool_test.cpp130 auto task = std::bind(TestFuncAddOneTime, i);
136 auto task = std::bind(TestFuncSubOneTime, i);
160 auto task = std::bind(TestFuncAddOneTime, i);
166 auto task = std::bind(TestFuncSubOneTime, i);
208 auto task = std::bind(TestFuncAddWait, i);
214 auto task = std::bind(TestFuncSubWait, i);
246 auto task = std::bind(TestFuncAddWait, i);
252 auto task = std::bind(TestFuncSubWait, i);
300 auto task = std::bind(TestFuncGetName, poolName);
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/
Dylong_tokio_udp.rs45 let sender = UdpSocket::bind(sender_addr).await.unwrap(); in ylong_udp_connect()
65 let sender = tokioUdpSocket::bind(sender_addr).await.unwrap(); in tokio_udp_connect()
97 let sender = UdpSocket::bind(sender_addr).await.unwrap(); in ylong_udp_send_recv()
98 let receiver = UdpSocket::bind(receiver_addr).await.unwrap(); in ylong_udp_send_recv()
138 let sender = tokioUdpSocket::bind(sender_addr.clone()).await.unwrap(); in tokio_udp_send_recv()
139 let receiver = tokioUdpSocket::bind(receiver_addr.clone()).await.unwrap(); in tokio_udp_send_recv()
183 let sender = UdpSocket::bind(sender_addr).await.unwrap(); in ylong_udp_send_to_recv_from()
184 let receiver = UdpSocket::bind(receiver_addr).await.unwrap(); in ylong_udp_send_to_recv_from()
220 let sender = tokioUdpSocket::bind(sender_addr.clone()).await.unwrap(); in tokio_udp_send_to_recv_from()
221 let receiver = tokioUdpSocket::bind(receiver_addr.clone()).await.unwrap(); in tokio_udp_send_to_recv_from()
Dylong_tokio_tcp.rs26 let tcp = tokioTcpListener::bind(addr).await.unwrap();
78 let tcp = TcpListener::bind(addr).await.unwrap();
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
Dudp_test.rs32 let sender = match UdpSocket::bind(sender_addr).await { in sdv_udp_send_recv()
39 let receiver = match UdpSocket::bind(receiver_addr).await { in sdv_udp_send_recv()
88 let sender = match UdpSocket::bind(sender_addr).await { in sdv_udp_send_to_recv_from()
95 let receiver = match UdpSocket::bind(receiver_addr).await { in sdv_udp_send_to_recv_from()
123 let sender = match UdpSocket::bind(sender_addr).await { in sdv_udp_send()
162 let receiver = match UdpSocket::bind(receiver_addr).await { in sdv_udp_recv()
197 let sender = match UdpSocket::bind(sender_addr).await { in sdv_udp_try_recv_from()
204 let receiver = match UdpSocket::bind(receiver_addr).await { in sdv_udp_try_recv_from()
242 let sender = match UdpSocket::bind(sender_addr).await { in sdv_udp_try_send()
284 let receiver = match UdpSocket::bind(receiver_addr).await { in sdv_udp_try_recv()
[all …]
Dtcp_test.rs60 let listener = TcpListener::bind(addr).await; in sdv_tcp_global_runtime()
109 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_tcp_multi_runtime()
149 let tcp = TcpListener::bind("127.0.0.1:8200").await.unwrap(); in sdv_tcp_drop_out_context()
Dasync_buf_read.rs34 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_reader_read_until()
78 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_reader_read_line()
119 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_reader_split()
158 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_reader_lines()
Dasync_buf_write.rs32 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_writer_write()
71 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_writer_write_vectored()
Dasync_read.rs65 let tcp = TcpListener::bind(addr).await.unwrap(); in sdv_buf_reader_read_to_string()
/commonlibrary/rust/ylong_runtime/ylong_io/tests/
Dudp_socket_test.rs30 let sender = match UdpSocket::bind(sender_addr) { in test_send_recv()
37 let receiver = match UdpSocket::bind(receiver_addr) { in test_send_recv()
90 let sender = match UdpSocket::bind(sender_addr) { in test_send_to_recv_from()
97 let receiver = match UdpSocket::bind(receiver_addr) { in test_send_to_recv_from()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/
Dudp.rs116 pub async fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<Self> { in bind() method
117 super::addr::each_addr(addr, ylong_io::UdpSocket::bind) in bind()
175 let socket = ylong_io::UdpSocket::bind(local_addr)?; in connect()
1469 let sender = UdpSocket::bind(sender_addr).await.unwrap(); in ut_udp_basic_v4()
1470 let receiver = UdpSocket::bind(receiver_addr).await.unwrap(); in ut_udp_basic_v4()
1516 let sender = UdpSocket::bind(sender_addr).await.unwrap(); in ut_udp_basic_v6()
1517 let receiver = UdpSocket::bind(receiver_addr).await.unwrap(); in ut_udp_basic_v6()
1542 let sender = match UdpSocket::bind(sender_addr).await { in test_send_recv_poll()
1549 let receiver = match UdpSocket::bind(receiver_addr).await { in test_send_recv_poll()
1603 let sender = match UdpSocket::bind(sender_addr).await { in test_send_to_recv_from_poll()
[all …]
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/
Dlistener.rs71 pub async fn bind<A: ToSocketAddrs>(addr: A) -> io::Result<TcpListener> { in bind() method
72 super::super::addr::each_addr(addr, ylong_io::TcpListener::bind) in bind()
239 let server = TcpListener::bind(addr).await.unwrap(); in ut_tcp_listener_basic()
Dsplit.rs136 let listener = TcpListener::bind(addr).await.unwrap(); in ut_test_borrow_half()
190 let listener = TcpListener::bind(addr).await.unwrap(); in ut_test_owned_half()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/tcp/
Dsocket.rs61 pub(crate) fn bind(&self, addr: SocketAddr) -> io::Result<()> { in bind() method
62 use WinSock::bind; in bind()
66 bind(self.socket as _, raw_addr.as_ptr(), raw_addr_length), in bind()
Dlistener.rs43 pub fn bind(addr: SocketAddr) -> io::Result<TcpListener> { in bind() method
47 socket.bind(addr)?; in bind()
/commonlibrary/c_utils/docs/zh-cn/
Dc-utils-guide-safe_block_queue.md94 thread producer(bind(&ProductsLine::Produce, ref(line)));
97 thread consumer(bind(&ProductsLine::Consume, ref(line)));
162 thread producer(bind(&ProductsLine::Produce, ref(line)));
165 thread consumer(bind(&ProductsLine::Consume, ref(line)));
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/linux/udp/
Dsocket.rs46 pub(crate) fn bind(self, addr: SocketAddr) -> io::Result<UdpSocket> { in bind() method
48 match syscall!(bind(self.socket, raw_addr.as_ptr(), addr_length)) { in bind()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/udp/
Dsocket.rs20 bind as win_bind, closesocket, ioctlsocket, socket, ADDRESS_FAMILY, AF_INET, AF_INET6, FIONBIO,
61 pub(crate) fn bind(self, addr: SocketAddr) -> io::Result<net::UdpSocket> { in bind() method
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/linux/tcp/
Dsocket.rs65 pub(crate) fn bind(&self, addr: SocketAddr) -> io::Result<()> { in bind() method
67 match syscall!(bind(self.socket, raw_addr.as_ptr(), addr_length)) { in bind()
Dlistener.rs37 pub fn bind(addr: SocketAddr) -> io::Result<TcpListener> { in bind() method
40 socket.bind(addr)?; in bind()
/commonlibrary/c_utils/base/src/
Dtimer.cpp38 std::thread loop_thread(std::bind(&Timer::MainLoop, this)); in Setup()
82 …uint32_t ret = DoRegister(std::bind(&Timer::OnTimer, this, std::placeholders::_1), interval, once,… in Register()
153 std::function<void(int)> cb = std::bind(&Timer::DoTimerListCallback, this, callback, _1); in DoRegister()
/commonlibrary/rust/ylong_runtime/ylong_runtime/benches/bin/
Dylong_tokio_tcp_perf.rs114 let listener = TcpListener::bind(addr).await.unwrap(); in main()
158 let listener = tokioTcpListener::bind("127.0.0.1:9082").await.unwrap(); in main()
Dylong_runtime_tcp_server_perf.rs27 let server = match TcpListener::bind(addr).await { in main()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
Dselect.rs175 $( ( $index:expr, $($_i:tt)* ) $bind:pat = $fut:expr, if $c:expr => $handle:expr, )+
232 $bind => {
265 … $crate::tuple_form!(($count) with Out::Fail except Out::Finish($bind) at ($($_i)*)) => $handle,
/commonlibrary/rust/ylong_runtime/ylong_runtime/examples/
Dylong_runtime_tcp.rs25 let tcp = TcpListener::bind(addr).await.unwrap(); in ylong_tcp_server()

12