threadshare: Add FIXME comment for refactoring opportunities

This commit is contained in:
Sebastian Dröge 2018-04-04 18:11:06 +03:00
parent 28100d3a63
commit 88933790e7
4 changed files with 4 additions and 0 deletions

View file

@ -465,6 +465,7 @@ impl AppSrc {
if let (&Some(ref pending_future_id), &Some(ref io_context)) =
(pending_future_id, io_context)
{
// FIXME: This should all go into a helper function
let pending_futures = io_context.drain_pending_futures(*pending_future_id);
if !pending_futures.is_empty() {

View file

@ -1031,6 +1031,7 @@ impl ProxySrc {
if let (&Some(ref pending_future_id), &Some(ref io_context)) =
(pending_future_id, io_context)
{
// FIXME: This should all go into a helper function
let pending_futures = io_context.drain_pending_futures(*pending_future_id);
if !pending_futures.is_empty() {

View file

@ -662,6 +662,7 @@ impl Queue {
if let (&Some(ref pending_future_id), &Some(ref io_context)) =
(pending_future_id, io_context)
{
// FIXME: This should all go into a helper function
let pending_futures = io_context.drain_pending_futures(*pending_future_id);
if !pending_futures.is_empty() {

View file

@ -406,6 +406,7 @@ impl UdpSrc {
if let (&Some(ref pending_future_id), &Some(ref io_context)) =
(pending_future_id, io_context)
{
// FIXME: This should all go into a helper function
let pending_futures = io_context.drain_pending_futures(*pending_future_id);
if !pending_futures.is_empty() {