qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alan Conway (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PROTON-1221) c++: new container interface lacks scheduled timer events
Date Tue, 07 Jun 2016 21:22:21 GMT

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

Alan Conway commented on PROTON-1221:
-------------------------------------

First cut at https://reviews.apache.org/r/48362/diff/ 
Single-threaded only. There is no task return value, the example shows how timed events can
be cancelled in user code.


> c++: new container interface lacks scheduled timer events
> ---------------------------------------------------------
>
>                 Key: PROTON-1221
>                 URL: https://issues.apache.org/jira/browse/PROTON-1221
>             Project: Qpid Proton
>          Issue Type: Bug
>          Components: cpp-binding
>            Reporter: Alan Conway
>            Assignee: Alan Conway
>
> Scheduled timer events fell out of the new proton::container API and need to be restored.
Rather than adding timer functions to the messaging_handler interface, container::schedule()
will take a std::function (or C++03 functor class) similar to event_loop::inject. Otherwise
the API would be similar: returning a task object that can be ignored or used to cancel()
the task.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org


Mime
View raw message