ledger-core
ExecutionContext.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from thread_dispatcher.djinni
3 
4 #ifndef DJINNI_GENERATED_EXECUTIONCONTEXT_HPP
5 #define DJINNI_GENERATED_EXECUTIONCONTEXT_HPP
6 
7 #include <cstdint>
8 #include <memory>
9 #ifndef LIBCORE_EXPORT
10  #if defined(_MSC_VER)
11  #include <libcore_export.h>
12  #else
13  #define LIBCORE_EXPORT
14  #endif
15 #endif
16 
17 namespace ledger { namespace core { namespace api {
18 
19 class Runnable;
20 
23 public:
24  virtual ~ExecutionContext() {}
25 
30  virtual void execute(const std::shared_ptr<Runnable> & runnable) = 0;
31 
37  virtual void delay(const std::shared_ptr<Runnable> & runnable, int64_t millis) = 0;
38 };
39 
40 } } } // namespace ledger::core::api
41 #endif //DJINNI_GENERATED_EXECUTIONCONTEXT_HPP
virtual void delay(const std::shared_ptr< Runnable > &runnable, int64_t millis)=0
Definition: ExecutionContext.hpp:22
Definition: Account.cpp:8
virtual void execute(const std::shared_ptr< Runnable > &runnable)=0