Skip to content
Snippets Groups Projects
Commit 4708a568 authored by Atkins, Charles Vernon's avatar Atkins, Charles Vernon
Browse files

Add typedefs to simplify the callback signature

parent 31d44b3b
No related branches found
No related tags found
1 merge request!215Add plugin engine
...@@ -37,6 +37,9 @@ namespace adios2 ...@@ -37,6 +37,9 @@ namespace adios2
* Close */ * Close */
class Engine class Engine
{ {
public:
using AdvanceAsyncCallback =
std::function<void(std::shared_ptr<adios2::Engine>)>;
public: public:
/** /**
...@@ -247,9 +250,8 @@ public: ...@@ -247,9 +250,8 @@ public:
* readers * readers
* @param callback Will be called when advance is completed. * @param callback Will be called when advance is completed.
*/ */
virtual void virtual void AdvanceAsync(const AdvanceMode mode,
AdvanceAsync(const AdvanceMode mode, AdvanceAsyncCallback callback);
std::function<void(std::shared_ptr<adios2::Engine>)> callback);
AdvanceStatus GetAdvanceStatus(); AdvanceStatus GetAdvanceStatus();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment