git-svn-id: svn://db.shs.com.ru/pip@233 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -858,8 +858,7 @@ PIString PIPeer::constructFullPath() const {
|
||||
|
||||
|
||||
int PIPeer::read(void * read_to, int max_size) {
|
||||
bool empty = read_buffer.isEmpty();
|
||||
while (empty) piMSleep(10);
|
||||
while (read_buffer.isEmpty()) piMSleep(10);
|
||||
PIMutexLocker ml(read_buffer_mutex);
|
||||
if (!read_buffer.isEmpty()) {
|
||||
PIByteArray ba = read_buffer.dequeue();
|
||||
|
||||
Reference in New Issue
Block a user