[jira] [Commented] (PROTON-1221) c++: new container interface lacks scheduled timer events
[ https://issues.apache.org/jira/browse/PROTON-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=15329513#comment-15329513 ] Alan Conway commented on PROTON-1221: - API complete but the implementation does not yet support for multi-threaded containers and examples. https://git-wip-us.apache.org/repos/asf?p=qpid-proton.git;a=commit;h=ab54cb70601f96ed2b70fd17f6dd5ce1f273c207 PROTON-1221: c++ container::schedule() support. container::schedule() with simple example of sending messages at a fixed interval. Examples for C++03 and C++11. Modified inject() to use the same proton::void_function0 as schedule for C++03. Note: the example chains schedule() calls at a fixed interval. A precise fixed-frequency sender should take account of the actual time to correct for variations. > 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. -- This message was sent by Atlassian JIRA (v6.3.4#6332) - To unsubscribe, e-mail: dev-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org
[jira] [Commented] (PROTON-1221) c++: new container interface lacks scheduled timer events
[ https://issues.apache.org/jira/browse/PROTON-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=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-unsubscr...@qpid.apache.org For additional commands, e-mail: dev-h...@qpid.apache.org