ledger-core
ThreadDispatcher.hpp
1 // AUTOGENERATED FILE - DO NOT MODIFY!
2 // This file generated by Djinni from thread_dispatcher.djinni
3 
4 #ifndef DJINNI_GENERATED_THREADDISPATCHER_HPP
5 #define DJINNI_GENERATED_THREADDISPATCHER_HPP
6 
7 #include <memory>
8 #include <string>
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 ExecutionContext;
20 class Lock;
21 
24 public:
25  virtual ~ThreadDispatcher() {}
26 
32  virtual std::shared_ptr<ExecutionContext> getSerialExecutionContext(const std::string & name) = 0;
33 
40  virtual std::shared_ptr<ExecutionContext> getThreadPoolExecutionContext(const std::string & name) = 0;
41 
46  virtual std::shared_ptr<ExecutionContext> getMainExecutionContext() = 0;
47 
52  virtual std::shared_ptr<Lock> newLock() = 0;
53 };
54 
55 } } } // namespace ledger::core::api
56 #endif //DJINNI_GENERATED_THREADDISPATCHER_HPP
virtual std::shared_ptr< ExecutionContext > getThreadPoolExecutionContext(const std::string &name)=0
Definition: ThreadDispatcher.hpp:23
virtual std::shared_ptr< Lock > newLock()=0
Definition: Account.cpp:8
virtual std::shared_ptr< ExecutionContext > getMainExecutionContext()=0
virtual std::shared_ptr< ExecutionContext > getSerialExecutionContext(const std::string &name)=0