PIIODevice::bytesAvailible()

fix pistringlist pibinarystream write
pibinarystream::binaryStreamSize()
PIByteArray pibinarystream read with more size fix
pistring pibinarystream read optimization
fix bug in PIIOBinaryStream read and write if failed
workaround in PIIOString::readDevice
PISPI readDevice bug Fixed
This commit is contained in:
Бычков Андрей
2022-07-27 15:43:04 +03:00
parent d13e68c206
commit 3873f0b03b
50 changed files with 323 additions and 253 deletions

View File

@@ -147,10 +147,10 @@ protected:
mutable PIMutex rec_mutex;
private:
void begin() {
void begin() override {
init();
}
void run() {
void run() override {
if (!isOpened()) {
open();
diag_.reset();
@@ -185,7 +185,7 @@ private:
}
}
void end() {
void end() override {
stopRecord();
close();
}

View File

@@ -135,8 +135,8 @@ protected:
uint max_size;
private:
void begin() {cnt = 0;}
void run() {
void begin() override {cnt = 0;}
void run() override {
mutex.lock();
while (in.isEmpty()) {
cv.wait(mutex);

View File

@@ -220,7 +220,7 @@ private:
static Pool * instance();
void add(_PITimerImp_Pool * t);
void remove(_PITimerImp_Pool * t);
void run();
void run() override;
PIVector<_PITimerImp_Pool * > timers, to_remove;
private:
explicit Pool();