Added statExchange getPID function
This commit is contained in:
parent
e57cf42352
commit
80bd99de44
2 changed files with 6 additions and 0 deletions
|
@ -721,6 +721,11 @@ namespace IPC {
|
|||
return data[172];
|
||||
}
|
||||
|
||||
///\brief Gets PID field
|
||||
uint32_t statExchange::getPID() {
|
||||
return *(uint32_t*)(data+173);
|
||||
}
|
||||
|
||||
///\brief Creates a semaphore guard, locks the semaphore on call
|
||||
semGuard::semGuard(semaphore * thisSemaphore) : mySemaphore(thisSemaphore) {
|
||||
mySemaphore->wait();
|
||||
|
|
|
@ -40,6 +40,7 @@ namespace IPC {
|
|||
char getSync();
|
||||
void setSync(char s);
|
||||
unsigned int crc();
|
||||
uint32_t getPID();
|
||||
private:
|
||||
///\brief The payload for the stat exchange
|
||||
/// - 8 byte - now (timestamp of last statistics)
|
||||
|
|
Loading…
Add table
Reference in a new issue