add PIBinaryLog::threadedReadRecord event (with full info)
This commit is contained in:
@@ -181,6 +181,7 @@ bool PIBinaryLog::threadedRead(const uchar * readed, ssize_t size) {
|
||||
is_thread_ok = false;
|
||||
logmutex.lock();
|
||||
const PISystemTime lastrec_timestamp = lastrecord.timestamp;
|
||||
const int lastrec_id = lastrecord.id;
|
||||
logmutex.unlock();
|
||||
PISystemTime pt;
|
||||
double delay;
|
||||
@@ -248,7 +249,8 @@ bool PIBinaryLog::threadedRead(const uchar * readed, ssize_t size) {
|
||||
break;
|
||||
default: return false;
|
||||
}
|
||||
bool res = PIIODevice::threadedRead(readed, size);
|
||||
bool res = PIIODevice::threadedRead(readed, size);
|
||||
threadedReadRecord(PIByteArray(readed, size), lastrec_id, lastrec_timestamp);
|
||||
is_thread_ok = true;
|
||||
return res;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user