Lines 46-52
Link Here
|
46 |
#include "osl/file.hxx" |
46 |
#include "osl/file.hxx" |
47 |
#include "osl/pipe.hxx" |
47 |
#include "osl/pipe.hxx" |
48 |
#include "osl/security.hxx" |
48 |
#include "osl/security.hxx" |
49 |
#include "osl/thread.hxx" |
|
|
50 |
#include "osl/mutex.hxx" |
49 |
#include "osl/mutex.hxx" |
51 |
#include "com/sun/star/ucb/CommandAbortedException.hpp" |
50 |
#include "com/sun/star/ucb/CommandAbortedException.hpp" |
52 |
#include "com/sun/star/bridge/UnoUrlResolver.hpp" |
51 |
#include "com/sun/star/bridge/UnoUrlResolver.hpp" |
Lines 317-323
OUString generateRandomPipeId()
Link Here
|
317 |
|
316 |
|
318 |
//============================================================================== |
317 |
//============================================================================== |
319 |
Reference<XInterface> resolveUnoURL( |
318 |
Reference<XInterface> resolveUnoURL( |
320 |
OUString const & connectString, |
319 |
oslProcess process, OUString const & connectString, |
321 |
Reference<XComponentContext> const & xLocalContext, |
320 |
Reference<XComponentContext> const & xLocalContext, |
322 |
AbortChannel * abortChannel ) |
321 |
AbortChannel * abortChannel ) |
323 |
{ |
322 |
{ |
Lines 333-341
Reference<XInterface> resolveUnoURL(
Link Here
|
333 |
try { |
332 |
try { |
334 |
return xUnoUrlResolver->resolve( connectString ); |
333 |
return xUnoUrlResolver->resolve( connectString ); |
335 |
} |
334 |
} |
336 |
catch (connection::NoConnectException &) { |
335 |
catch (connection::NoConnectException & e) { |
337 |
TimeValue tv = { 0 /* secs */, 500000000 /* nanosecs */ }; |
336 |
TimeValue tv = { 0 /* secs */, 500000000 /* nanosecs */ }; |
338 |
::osl::Thread::wait( tv ); |
337 |
if (osl_joinProcessWithTimeout(process, &tv) != |
|
|
338 |
osl_Process_E_TimedOut) |
339 |
{ |
340 |
throw RuntimeException(e.Message, e.Context); |
341 |
} |
339 |
} |
342 |
} |
340 |
} |
343 |
} |
341 |
} |
344 |
} |