You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Joris Van Remoortere (JIRA)" <ji...@apache.org> on 2014/12/03 21:24:12 UTC

[jira] [Created] (MESOS-2168) Introduce Event Loop Interface

Joris Van Remoortere created MESOS-2168:
-------------------------------------------

             Summary: Introduce Event Loop Interface
                 Key: MESOS-2168
                 URL: https://issues.apache.org/jira/browse/MESOS-2168
             Project: Mesos
          Issue Type: Task
          Components: libprocess
            Reporter: Joris Van Remoortere
            Assignee: Joris Van Remoortere


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

Something like:

{code:title=EventLoop.hpp|borderStyle=solid}
// 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*);
};
{code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)