summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2003-07-01 13:54:29 +0000
committerVladimir Glazounov <vg@openoffice.org>2003-07-01 13:54:29 +0000
commit3ffb0aff94d8cfb0577c1d2cc00f9224d60b8a5f (patch)
treee25c68d49b149a22ba3b52346196386d08b9990d /desktop
parenteda8e4c4dabd24afd1bc29428ecee920320d5da1 (diff)
INTEGRATION: CWS vcl14 (1.32.28); FILE MERGED
2003/06/27 08:50:09 pl 1.32.28.1: #110445# schedule thread after accept
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/app/officeipcthread.cxx18
1 files changed, 9 insertions, 9 deletions
diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx
index 9f84e709a07a..498cd42cb3ed 100644
--- a/desktop/source/app/officeipcthread.cxx
+++ b/desktop/source/app/officeipcthread.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: officeipcthread.cxx,v $
*
- * $Revision: 1.33 $
+ * $Revision: 1.34 $
*
- * last change: $Author: vg $ $Date: 2003-06-27 09:42:42 $
+ * last change: $Author: vg $ $Date: 2003-07-01 14:54:29 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -515,7 +515,7 @@ static void AddURLToStringList( const rtl::OUString& aURL, rtl::OUString& aStrin
void SAL_CALL OfficeIPCThread::run()
{
- while (schedule())
+ do
{
OPipe::TPipeError
nError = maPipe.accept( maStreamPipe );
@@ -705,14 +705,14 @@ void SAL_CALL OfficeIPCThread::run()
// processing finished, inform the requesting end
nBytes = 0;
while (
- (nResult = maStreamPipe.send(sc_aConfirmationSequence+nBytes, sc_nCSeqLength-nBytes))>0 &&
- ((nBytes += nResult) < sc_nCSeqLength) );
+ (nResult = maStreamPipe.send(sc_aConfirmationSequence+nBytes, sc_nCSeqLength-nBytes))>0 &&
+ ((nBytes += nResult) < sc_nCSeqLength) );
// now we can close, don't we?
// maStreamPipe.close();
- }
- else
- {
+ }
+ else
+ {
#if (OSL_DEBUG_LEVEL > 1) || defined DBG_UTIL
fprintf( stderr, "Error on accept: %d\n", (int)nError );
#endif
@@ -721,7 +721,7 @@ void SAL_CALL OfficeIPCThread::run()
tval.Nanosec = 0;
sleep( tval );
}
- }
+ } while( schedule() );
}
static void AddToDispatchList(