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>
|
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
|
* engine-gpgconf.c (gpgconf_config_load_cb2): Handle the flag
|
||||||
NO_ARG_DESC.
|
NO_ARG_DESC.
|
||||||
|
|
||||||
|
@ -329,11 +329,14 @@ void KDPipeIODevice::Private::emitReadyRead()
|
|||||||
emit q->readyRead();
|
emit q->readyRead();
|
||||||
|
|
||||||
if ( !thisPointer )
|
if ( !thisPointer )
|
||||||
return;
|
return;
|
||||||
qDebug( "KDPipeIODevice::Private::emitReadyRead %p, %d: locking reader (CONSUMER THREAD)", this, counter );
|
|
||||||
synchronized( reader ) {
|
if ( reader ) {
|
||||||
qDebug( "KDPipeIODevice::Private::emitReadyRead %p, %d: locked reader (CONSUMER THREAD)", this, counter );
|
qDebug( "KDPipeIODevice::Private::emitReadyRead %p, %d: locking reader (CONSUMER THREAD)", this, counter );
|
||||||
reader->readyReadSentCondition.wakeAll();
|
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 );
|
qDebug( "KDPipeIODevice::Private::emitReadyRead %p leaving %d", this, counter );
|
||||||
|
|
||||||
@ -704,7 +707,7 @@ void Reader::run() {
|
|||||||
|
|
||||||
while ( !cancel && !error && bufferFull() ) {
|
while ( !cancel && !error && bufferFull() ) {
|
||||||
notifyReadyRead();
|
notifyReadyRead();
|
||||||
if ( bufferFull() ) {
|
if ( !cancel && bufferFull() ) {
|
||||||
qDebug( "%p: Reader::run: buffer is full, going to sleep", this );
|
qDebug( "%p: Reader::run: buffer is full, going to sleep", this );
|
||||||
bufferNotFullCondition.wait( &mutex );
|
bufferNotFullCondition.wait( &mutex );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user