#include "launchpad-process-pool/cpu_checker.hh"
#include "launchpad-process-pool/loader_info.hh"
#include "launchpad-process-pool/launcher_info.hh"
+#include "launchpad-process-pool/loader_mount.hh"
namespace launchpad {
Builder& SetLoaderId(int loader_id);
Builder& SetCallerPid(pid_t caller_pid);
Builder& SetActive();
+ Builder& SetLoaderMount(std::shared_ptr<LoaderMount> loader_mount);
virtual operator LoaderContext*();
int loader_id_ = 0;
pid_t caller_pid_ = getpid();
bool activated_ = true;
+ std::shared_ptr<LoaderMount> loader_mount_;
};
class IEvent {
};
LoaderContext(std::shared_ptr<LoaderInfo> loader_info, int loader_id,
- pid_t caller_pid, bool activated);
+ pid_t caller_pid, bool activated,
+ std::shared_ptr<LoaderMount> loader_mount);
virtual ~LoaderContext();
virtual void Listen();
int loader_id_;
pid_t caller_pid_;
bool activated_;
+ std::shared_ptr<LoaderMount> loader_mount_;
std::unique_ptr<CPUChecker> cpu_checker_;
unsigned int score_;
std::string loader_extra_;