#include <BatchStatus.hpp>
◆ BatchStatusImp()
geopm::BatchStatusImp::BatchStatusImp |
( |
int |
read_fd, |
|
|
int |
write_fd |
|
) |
| |
◆ ~BatchStatusImp()
virtual geopm::BatchStatusImp::~BatchStatusImp |
( |
| ) |
|
|
virtualdefault |
◆ check_return()
void geopm::BatchStatusImp::check_return |
( |
int |
ret, |
|
|
const std::string & |
func_name |
|
) |
| |
|
protected |
◆ open_fifo()
virtual void geopm::BatchStatusImp::open_fifo |
( |
void |
| ) |
|
|
protectedpure virtual |
◆ receive_message() [1/2]
void geopm::BatchStatusImp::receive_message |
( |
char |
expect | ) |
|
|
overridevirtual |
Receive specified integer from the other process.
- Parameters
-
expect | [in] Value that is expected to be received from other process. |
- Exceptions
-
Exception | if a message is received, but the message does not match the expected_message. |
Implements geopm::BatchStatus.
◆ receive_message() [2/2]
char geopm::BatchStatusImp::receive_message |
( |
void |
| ) |
|
|
overridevirtual |
Receive any integer from the other process.
- Returns
- Message received
Implements geopm::BatchStatus.
◆ send_message()
void geopm::BatchStatusImp::send_message |
( |
char |
msg | ) |
|
|
overridevirtual |
Send an integer to the other process.
- Parameters
-
msg | [in] Message number to send. |
Implements geopm::BatchStatus.
◆ M_DEFAULT_FIFO_PREFIX
constexpr const char* geopm::BatchStatusImp::M_DEFAULT_FIFO_PREFIX |
|
staticconstexprprotected |
Initial value:=
"/run/geopm/batch-status-"
◆ m_read_fd
int geopm::BatchStatusImp::m_read_fd |
|
protected |
◆ m_write_fd
int geopm::BatchStatusImp::m_write_fd |
|
protected |
The documentation for this class was generated from the following files: