File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ namespace application
66{
77 namespace helper
88 {
9- const std::string FifoCheckpointCommunicator::cFifoPath{" /tmp/checkpoint_communicator" };
109 const std::size_t FifoCheckpointCommunicator::cBufferSize{sizeof (uint32_t )};
1110
1211 FifoCheckpointCommunicator::FifoCheckpointCommunicator (
13- AsyncBsdSocketLib::Poller *poller) : mPoller {poller},
14- mClient (cFifoPath),
15- mServer (cFifoPath)
12+ AsyncBsdSocketLib::Poller *poller,
13+ std::string fifoPath) : mPoller {poller},
14+ mClient (fifoPath),
15+ mServer (fifoPath)
1616 {
1717 bool _succeed = mServer .TrySetup ();
1818 if (!_succeed)
Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ namespace application
1616 class FifoCheckpointCommunicator : public ara ::phm::CheckpointCommunicator
1717 {
1818 private:
19- static const std::string cFifoPath;
2019 static const std::size_t cBufferSize;
2120
2221 AsyncBsdSocketLib::Poller *mPoller ;
@@ -30,9 +29,11 @@ namespace application
3029 public:
3130 // / @brief Constructor
3231 // / @param poller Master poller
32+ // / @param fifoPath FIFO file path
3333 // / @throws std::runtime_error Thrown when the FIFO communication setup failed
34- explicit FifoCheckpointCommunicator (
35- AsyncBsdSocketLib::Poller *poller);
34+ FifoCheckpointCommunicator (
35+ AsyncBsdSocketLib::Poller *poller,
36+ std::string fifoPath);
3637
3738 ~FifoCheckpointCommunicator () override ;
3839
You can’t perform that action at this time.
0 commit comments