PIBinaryLog thread-safe and RealTime mode patching, now pause and seek available

This commit is contained in:
2021-03-17 22:51:44 +03:00
parent 7bbbd09f42
commit 6e4b808a66
3 changed files with 32 additions and 16 deletions

View File

@@ -175,10 +175,10 @@ public:
int writeCount() const {return write_count;}
//! Read one record from BinLog file, with ID = id, if id = 0 than any id will be readed
PIByteArray readBinLog(int id = 0, PISystemTime * time = 0);
PIByteArray readBinLog(int id = 0, PISystemTime * time = 0, int * readed_id = 0);
//! Read one record from BinLog file, with ID = id, if id = 0 than any id will be readed
int readBinLog(int id, void * read_to, int max_size, PISystemTime * time = 0);
int readBinLog(int id, void * read_to, int max_size, PISystemTime * time = 0, int * readed_id = 0);
//! Returns binary log file size
llong logSize() const {return log_size;}