mirror of
https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs.git
synced 2024-12-24 02:50:34 +00:00
threadshare: Update for tokio API changes
This commit is contained in:
parent
2dfca38977
commit
da8390ef7b
1 changed files with 2 additions and 3 deletions
|
@ -134,8 +134,6 @@ impl IOContextRunner {
|
|||
|
||||
::tokio_reactor::with_default(&handle, &mut enter, |mut enter| {
|
||||
::tokio_timer::with_default(&timer_handle, &mut enter, |enter| loop {
|
||||
use tokio::executor::current_thread::Turn;
|
||||
|
||||
let now = time::Instant::now();
|
||||
|
||||
if self.shutdown.load(atomic::Ordering::SeqCst) > RUNNING {
|
||||
|
@ -150,10 +148,11 @@ impl IOContextRunner {
|
|||
}
|
||||
|
||||
gst_trace!(CONTEXT_CAT, "Turning current thread '{}'", self.name);
|
||||
while let Turn(true) = current_thread
|
||||
while current_thread
|
||||
.enter(enter)
|
||||
.turn(Some(time::Duration::from_millis(0)))
|
||||
.unwrap()
|
||||
.has_polled()
|
||||
{}
|
||||
gst_trace!(CONTEXT_CAT, "Turned current thread '{}'", self.name);
|
||||
|
||||
|
|
Loading…
Reference in a new issue