Home
last modified time | relevance | path

Searched refs:shutdown (Results 1 - 25 of 33) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dblocking_pool.rs39 self.shutdown(BLOCKING_THREAD_QUIT_WAIT_TIME); in drop()
59 shutdown: false, in new()
76 pub fn shutdown(&mut self, timeout: Duration) -> bool { in shutdown() functions
79 if shared.shutdown { in shutdown()
117 /// Used for thread shutdown synchronization
157 shutdown: bool,
210 // if the shutdown flag is on, cancel the task in spawn()
212 !shared.shutdown, in spawn()
213 "The blocking runtime has already been shutdown, cannot spawn tasks" in spawn()
295 if !shared.shutdown in wait_temporary()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dstdio_cargo_test.rs39 let res = stdout.shutdown().await; in sdv_stdio_write()
51 let res = stderr.shutdown().await; in sdv_stdio_write()
71 let res = buf_writer.shutdown().await; in sdv_stdio_buf_writer_write()
80 let res = buf_writer.shutdown().await; in sdv_stdio_buf_writer_write()
H A Dpty_process.rs91 pty.shutdown().await.unwrap(); in sdv_pty_process_read_and_write_test()
117 write_pty.shutdown().await.unwrap(); in sdv_pty_split_test()
149 write_pty.shutdown().await.unwrap(); in sdv_pty_into_split_test()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dhttp_body.rs83 io.shutdown();
172 // If response body is not totally read, shutdown io. in drop()
174 io.shutdown() in drop()
244 io.shutdown(); in poll_read_io()
262 io.shutdown(); in poll_read_io()
336 io.shutdown(); in read_remaining()
372 io.shutdown(); in poll_read_io()
381 io.shutdown(); in poll_read_io()
406 io.shutdown(); in poll_read_io()
473 io.shutdown(); in data()
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/conn/
H A Dhttp1.rs67 conn.shutdown();
72 conn.shutdown();
82 conn.shutdown();
156 conn.shutdown();
161 conn.shutdown();
178 // The shutdown function only sets the current connection to the closed state in decode_response()
185 conn.shutdown() in decode_response()
196 conn.shutdown() in decode_response()
204 conn.shutdown() in decode_response()
212 conn.shutdown(); in decode_response()
291 fn shutdown(&self) { shutdown() functions
[all...]
H A Dmod.rs31 fn shutdown(&self); in shutdown() functions
H A Dhttp2.rs341 fn shutdown(&self) { in shutdown() functions
464 let shutdown = Arc::new(AtomicBool::new(false)); in ut_http2_body_poll_read()
465 let mut conn: Http2Conn<()> = Http2Conn::new(20, shutdown, req_tx); in ut_http2_body_poll_read()
/commonlibrary/rust/ylong_http/ylong_http_client/src/util/
H A Dtest_utils.rs70 $(Shutdown: $shutdown: expr,)?
117 stream.shutdown($shutdown).expect("server shutdown failed");
H A Ddispatcher.rs116 // `shutdown` indicates that the connection need to be shut down.
117 pub(crate) shutdown: AtomicBool,
128 shutdown: AtomicBool::new(false),
148 self.inner.shutdown.load(Ordering::Relaxed) in is_shutdown()
168 pub(crate) fn shutdown(&self) {
169 self.inner.shutdown.store(true, Ordering::Release);
397 // todo: goaway and shutdown in is_goaway()
446 pub(crate) fn new(streams: Streams, shutdown: Arc<AtomicBool>) -> Self {
448 io_shutdown: shutdown,
457 pub(crate) fn shutdown(
[all...]
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/conn/
H A Dmod.rs25 fn shutdown(&self); in shutdown() functions
/commonlibrary/rust/ylong_http/ylong_http_client/src/sync_impl/
H A Dhttp_body.rs140 io.shutdown(); in data()
158 io.shutdown(); in data()
170 io.shutdown(); in data()
239 io.shutdown(); in data()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/tcp/
H A Dstream.rs195 pub fn shutdown(&self, how: Shutdown) -> io::Result<()> { in shutdown() functions
196 self.inner.shutdown(how) in shutdown()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/unix/uds/
H A Ddatagram.rs253 /// socket.shutdown(Shutdown::Both).expect("shutdown() failed");
257 pub fn shutdown(&self, how: std::net::Shutdown) -> io::Result<()> { in shutdown() functions
258 self.inner.shutdown(how) in shutdown()
332 receiver2.shutdown(Shutdown::Both).unwrap(); in ut_uds_datagram_pair()
333 sender.shutdown(Shutdown::Both).unwrap() in ut_uds_datagram_pair()
H A Dstream.rs153 /// socket.shutdown(Shutdown::Both).expect("shutdown() failed");
157 pub fn shutdown(&self, how: std::net::Shutdown) -> io::Result<()> { in shutdown() functions
158 self.inner.shutdown(how) in shutdown()
284 receiver2.shutdown(Shutdown::Both).unwrap(); in ut_uds_stream_pair()
285 sender.shutdown(Shutdown::Both).unwrap() in ut_uds_stream_pair()
/commonlibrary/rust/ylong_runtime/ylong_io/src/sys/windows/tcp/
H A Dstream.rs120 /// .shutdown(Shutdown::Both)
121 /// .expect("shutdown call failed");
123 pub fn shutdown(&self, how: Shutdown) -> io::Result<()> { in shutdown() functions
124 self.inner.shutdown(how) in shutdown()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/unix/
H A Dstream.rs332 pub fn shutdown(&self, how: Shutdown) -> Result<()> { in shutdown() functions
333 self.source.shutdown(how) in shutdown()
369 self.source.shutdown(std::net::Shutdown::Write)?; in poll_flush()
H A Ddatagram.rs425 /// socket.shutdown(Shutdown::Both).expect("shutdown() failed");
429 pub fn shutdown(&self, how: std::net::Shutdown) -> Result<()> { in shutdown() functions
430 self.source.shutdown(how) in shutdown()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Dmod.rs81 pub(crate) fn shutdown(self) {
82 self.0.shutdown();
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/sys/tcp/
H A Dstream.rs562 pub fn shutdown(&self, how: Shutdown) -> io::Result<()> { in fmt() functions
563 self.source.shutdown(how) in fmt()
634 self.source.shutdown(std::net::Shutdown::Write)?; in poll_flush()
H A Dsplit.rs65 self.0.shutdown(Shutdown::Write).into() in poll_flush()
111 self.0.shutdown(Shutdown::Write).into() in poll_flush()
245 write_half.shutdown().await.unwrap(); in poll_flush()
295 write_half.shutdown().await.unwrap(); in poll_flush()
/commonlibrary/rust/ylong_http/ylong_http_client/tests/tcp_server/
H A Dmod.rs63 $(Shutdown: $shutdown: expr,)?
139 stream.shutdown($shutdown).expect("server shutdown failed");
/commonlibrary/rust/ylong_runtime/ylong_io/tests/
H A Duds_test.rs65 stream.shutdown(Shutdown::Both).unwrap(); in sdv_uds_stream_test()
149 sender2.shutdown(Shutdown::Write).unwrap(); in sdv_uds_send_recv()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dasync_write.rs82 /// This method is designed for asynchronous shutdown of the I/O connection. in poll_flush()
87 /// been occurred during the shutdown procedure. It typically means the in poll_flush()
288 /// io.shutdown().await?; in poll_flush()
290 fn shutdown(&mut self) -> ShutdownTask<'_, Self> in poll_flush() functions
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/
H A Dmod.rs267 fn shutdown(&self) { in shutdown() functions
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/ssl_stream/
H A Dc_ssl_stream.rs136 match self.as_mut().with_context(ctx, |s| s.shutdown()) { in poll_shutdown()

Completed in 16 milliseconds

12