2008-01-10 Marcus Brinkmann <marcus@g10code.de>
* kdpipeiodevice.cpp: New version from Frank Osterfeld.
This commit is contained in:
parent
38c5950991
commit
7813804014
@ -1,5 +1,7 @@
|
||||
2008-01-10 Marcus Brinkmann <marcus@g10code.de>
|
||||
|
||||
* kdpipeiodevice.cpp: New version from Frank Osterfeld.
|
||||
|
||||
* engine-gpgconf.c (gpgconf_config_load_cb2): Handle the flag
|
||||
NO_ARG_DESC.
|
||||
|
||||
|
@ -330,11 +330,14 @@ void KDPipeIODevice::Private::emitReadyRead()
|
||||
|
||||
if ( !thisPointer )
|
||||
return;
|
||||
|
||||
if ( reader ) {
|
||||
qDebug( "KDPipeIODevice::Private::emitReadyRead %p, %d: locking reader (CONSUMER THREAD)", this, counter );
|
||||
synchronized( reader ) {
|
||||
qDebug( "KDPipeIODevice::Private::emitReadyRead %p, %d: locked reader (CONSUMER THREAD)", this, counter );
|
||||
reader->readyReadSentCondition.wakeAll();
|
||||
}
|
||||
}
|
||||
qDebug( "KDPipeIODevice::Private::emitReadyRead %p leaving %d", this, counter );
|
||||
|
||||
}
|
||||
@ -704,7 +707,7 @@ void Reader::run() {
|
||||
|
||||
while ( !cancel && !error && bufferFull() ) {
|
||||
notifyReadyRead();
|
||||
if ( bufferFull() ) {
|
||||
if ( !cancel && bufferFull() ) {
|
||||
qDebug( "%p: Reader::run: buffer is full, going to sleep", this );
|
||||
bufferNotFullCondition.wait( &mutex );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user