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:25:12 UTC

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

    [ https://issues.apache.org/jira/browse/MESOS-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14233480#comment-14233480 ] 

Joris Van Remoortere commented on MESOS-2168:
---------------------------------------------

https://reviews.apache.org/r/28315/

> 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
>              Labels: libprocess
>
> 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)