Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8101443

Support for interleaved nested event loops

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: fx2.1
    • Fix Version/s: fx2.1
    • Component/s: javafx
    • Labels:
      None

      Description

      The current design of the Application.enter/leaveNestedEventLoop() API implies that the leave...() call happens exactly for the most recent nested event loop. The following scenario isn't supported:

      enter loop1
      enter loop2
      leave loop1 << --- not supported; should be "leave loop2" first
      leave loop 2

      However, there's a requirement to support this scenario for Plugin-related code.

      We need to introduce EventLoop objects, so that the enter()/leave() methods would belong to these objects rather than be static Application class methods. In this case we'll be able to distinguish between the leave() calls so that the inner nested event loop won't terminate because of a call to leave() for the outer nested event loop.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                anthony Anthony Petrov (Inactive)
                Reporter:
                anthony Anthony Petrov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: