Home
last modified time | relevance | path

Searched refs:poll (Results 1 - 25 of 48) sorted by relevance

12

/commonlibrary/rust/ylong_runtime/ylong_io/examples/
H A Dylong_io_tcp_server.rs28 let poll = Poll::new()?; in main()
33 poll.register(&mut server, SERVER, Interest::READABLE)?; in main()
39 poll.poll(&mut events, None)?; in main()
48 poll.register(&mut stream, token, Interest::READABLE | Interest::WRITABLE)?; in main()
58 poll.deregister(connection)?; in main()
59 poll.register(connection, event.token(), Interest::READABLE)?; in main()
64 poll.deregister(connection)?; in main()
65 poll.register(connection, event.token(), Interest::READABLE)?; in main()
74 poll in main()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/tests/
H A Duds_test.rs70 let poll = Poll::new()?; in server()
73 poll.register(&mut server, SERVER, Interest::READABLE)?; in server()
79 poll.poll(&mut events, None)?; in server()
86 poll.register(&mut stream, token, Interest::READABLE | Interest::WRITABLE)?; in server()
94 poll.deregister(connection)?; in server()
95 poll.register(connection, event.token(), Interest::READABLE)?; in server()
99 poll.deregister(connection)?; in server()
100 poll.register(connection, event.token(), Interest::READABLE)?; in server()
107 Ok(0) => poll in server()
[all...]
/commonlibrary/rust/ylong_runtime/ylong_io/src/
H A Dwaker.rs27 pub fn new(poll: &Poll, token: Token) -> io::Result<Self> { in new()
28 WakerInner::new(poll.selector(), token).map(|inner| Waker { inner }) in new()
48 let poll = Poll::new().unwrap(); in ut_waker_debug_info()
49 let waker = Waker::new(&poll, Token::from_usize(0)).unwrap(); in ut_waker_debug_info()
H A Dlib.rs16 mod poll; modules
17 pub use poll::Poll;
H A Dpoll.rs37 pub fn poll(&self, events: &mut Events, timeout: Option<Duration>) -> io::Result<()> { in poll() functions
72 /// UT cases for debug info of poll in fmt()
81 let poll = Poll::new().unwrap(); in fmt()
82 let fmt = format!("{:?}", poll); in fmt()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/net/
H A Ddriver.rs61 poll: Arc<Poll>,
197 let poll =
199 let waker = ylong_io::Waker::new(&poll, WAKE_TOKEN)
201 let arc_poll = Arc::new(poll);
220 poll: arc_poll,
256 match self.poll.poll(&mut events, time_out) {
/commonlibrary/memory_utils/libsync/src/
H A Dsync.c17 #include <poll.h>
34 result = poll(&work, 1, time); in SyncWait()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/task/
H A Dyield_now.rs45 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
67 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
H A Djoin_handle.rs102 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/io/
H A Dread_task.rs32 None => panic!("read: poll after finished"),
61 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
115 let poll = Pin::new(&mut reader).poll_read(cx, &mut read_buf); in poll_read_to_end()
117 match poll { in poll_read_to_end()
139 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
211 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
246 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
330 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
366 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
H A Dwrite_task.rs26 None => panic!("write: poll after finished"),
58 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
98 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
140 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
177 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
202 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
H A Dstdin.rs74 let (res, mut buf_inner, std) = match Pin::new(join_handle).poll(cx)? { in poll_read()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/downloader/
H A Doperator.rs109 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
127 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/process/
H A Dtry_join3.rs20 match $fut.as_mut().poll($cx) {
96 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
100 FutureDone::Pending(fut) => match Pin::new_unchecked(fut).poll(cx) { in poll()
171 if fut.as_mut().poll(cx).is_pending() { in ut_future_done_test()
/commonlibrary/rust/ylong_runtime/ylong_runtime/tests/
H A Dsync.rs41 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
H A Djoin_set.rs52 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
69 /// 2. Spawn a future that returns pending during first poll and ready for
70 /// second poll.
H A Dtask_cancel.rs74 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
H A Dtimer_test.rs101 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
107 if Pin::new(&mut sleep).poll(cx).is_pending() {
121 /// `poll`
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/fs/
H A Dasync_file.rs68 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
73 let (file_buf, res) = poll_ready!(Pin::new(x).poll(cx))?;
79 let (file_buf, res) = poll_ready!(Pin::new(x).poll(cx))?;
503 let res = poll_ready!(Pin::new(state).poll(cx)); in poll_seek()
560 let (mut file_buf, res) = poll_ready!(Pin::new(x).poll(cx))?; in poll_read()
569 let (file_buf, res) = poll_ready!(Pin::new(x).poll(cx))?; in poll_read()
578 let (file_buf, res) = poll_ready!(Pin::new(x).poll(cx))?; in poll_read()
627 if let Poll::Ready(Err(e)) = Pin::new(state).poll(cx) { in poll_write()
662 let res = poll_ready!(Pin::new(state).poll(cx)); in poll_flush()
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/
H A Dtimeout.rs43 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
47 if let Poll::Ready(()) = delay.as_mut().poll(cx) {
51 match Pin::new(&mut this.future).poll(cx) {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/time/
H A Dtimeout.rs72 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
76 if let Poll::Ready(result) = value.poll(cx) {
81 match sleep.poll(cx) {
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/
H A Dspawn.rs39 fn poll(mut self: Pin<&mut Self>, _cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/sync/
H A Dsemaphore_inner.rs233 fn poll(self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
/commonlibrary/rust/ylong_http/ylong_http_client/src/async_impl/dns/
H A Dresolver.rs81 fn poll(mut self: Pin<&mut Self>, cx: &mut Context<'_>) -> Poll<Self::Output> { in poll() functions
82 Pin::new(&mut self.inner).poll(cx).map(|res| match res { in poll()
/commonlibrary/rust/ylong_runtime/ylong_runtime/src/executor/
H A Dblock_on.rs105 if let Poll::Ready(res) = future.as_mut().poll(&mut cx) {

Completed in 8 milliseconds

12