[C++] Allow producers to require callbacks are scheduled on a new thread

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major
    • None
    • Affects Version/s: None
    • Component/s: C++
    • None

      Right now the BackgroundGenerator (async_generator.h) can deadlock if the user does not transfer onto a new thread task.  It's also typically a good idea to keep the background generator iterating the input as fast as possible.

       

      If the background generator could create a promise that required callbacks to run on a new thread it would prevent callers from having to remember to do so.

            Assignee:
            Unassigned
            Reporter:
            Weston Pace
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: