Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-2168

Introduce Event Loop Interface

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • libprocess
    • Mesosphere Q4 Sprint 3 - 12/7

    Description

      Introduce an EventLoop interface that event management systems such as libev and libevent can implement.

      Something like:

      EventLoop.hpp
      // The interface that must be implemented by an event management
      // system. This is a class to cleanly isolate the interface and so
      // that in the future we can support multiple implementations.
      class EventLoop
      {
      public:
        // Initializes the event loop.
        static void initialize();
      
        // Invoke the specified function in the event loop after the
        // specified duration.
        static void delay(double duration, void(*function)(void));
      
        // Returns the current time w.r.t. the event loop.
        static double time();
      
        // Runs the event loop.
        static void *run(void*);
      };
      

      Attachments

        Activity

          People

            jvanremoortere Joris Van Remoortere
            jvanremoortere Joris Van Remoortere
            Benjamin Hindman Benjamin Hindman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: