summaryrefslogtreecommitdiff
path: root/binaryurp
AgeCommit message (Collapse)AuthorFilesLines
2012-08-15fdo#43433: Binary URP works gracefully with old Java URPStephan Bergmann1-1/+18
...which did not support protocol properties yet. Change-Id: Ic5bb346764fb039856e16169d5ae96d01422e7e0 Signed-off-by: Michael Stahl <mstahl@redhat.com>
2012-05-23Better fix for ThreadPool/ORequestThread life cycleStephan Bergmann6-77/+161
This is a follow up to d015384e1d98fe77fd59339044f58efb1ab9fb25 "Fixed ThreadPool (and dependent ORequestThread) life cycle" that still had some problems: * First, if Bridge::terminate was first entered from the reader or writer thread, it would not join on that thread, so that thread could still be running during exit. That has been addressed by giving Bridge::dispose new semantics: It waits until both Bridge::terminate has completed (even if that was called from a different thread) and all spawned threads (reader, writer, ORequestThread workers) have been joined. (This implies that Bridge::dispose must not be called from such a thread, to avoid deadlock.) * Second, if Bridge::terminate was first entered from an ORequestThread, the call to uno_threadpool_dispose(0) to join on all such worker threads could deadlock. That has been addressed by making the last call to uno_threadpool_destroy wait to join on all worker threads, and by calling uno_threadpool_destroy only from the final Bridge::terminate (from Bridge::dispose), to avoid deadlock. (The special semantics of uno_threadpool_dispose(0) are no longer needed and have been removed, as they conflicted with the fix for the third problem below.) * Third, once uno_threadpool_destroy had called uno_threadpool_dispose(0), the ThreadAdmin singleton had been disposed, so no new remote bridges could successfully be created afterwards. That has been addressed by making ThreadAdmin a member of ThreadPool, and making (only) those uno_ThreadPool handles with overlapping life spans share one ThreadPool instance (which thus is no longer a singleton, either). Additionally, ORequestThread has been made more robust (in the style of salhelper::Thread) to avoid races. Change-Id: I2cbd1b3f9aecc1bf4649e482d2c22b33b471788f
2012-05-16Fixed ThreadPool (and dependent ORequestThread) life cycleStephan Bergmann2-23/+33
At least with sw_complex test under load, it happened that an ORequestThread could still process a remote release request while the main thread was already in exit(3). This was because (a) ThreadPool never joined with the spawned worker threads (which has been rectified by calling uno_threadpool_dispose(0) from the final uno_threadpool_destroy), and (b) binaryurp::Bridge called uno_threadpool_destroy only from its destructor (which could go as late as exit(3)) instead of from terminate. Additional clean up: * Access to Bridge's threadPool_ is now cleanly controlled by mutex_ (even though that might not be necessary in every case). * ThreadPool's stopDisposing got renamed to destroy, to make meaning clearer. Change-Id: I45fa76e80e790a11065e7bf8ac9d92af2e62f262
2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen1-1/+0
this removes dmake completely out of the build for migrated modules build.pl now assumes modules to be gbuild, unless there is a prj/dmake file Change-Id: I674a036b182ee13c5ec093e83cb3d38133112d3b
2012-04-14put the missing type into the exception messageMichael Stahl1-2/+4
2012-04-08gbuild: "use" vs. "add":Michael Stahl3-6/+6
Naming convention for gbuild methods: - "add" is used for stuff that is logically a part of the target (i.e. not registered at the Module, but defined in the target's makefile) - "use" is used for stuff that is logically a different target (i.e. it is registered at the Module, has it's own makefile, may be in a different module than the target)
2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi3-6/+3
2012-03-20Unused includesStephan Bergmann2-2/+0
2012-03-13binaryurp has cppunit testsBjoern Michaelsen1-1/+1
2012-03-08Clarifying comment addedStephan Bergmann1-0/+6
2012-02-23Adapted Reader/Writer to safer-to-use salhelper::ThreadStephan Bergmann5-54/+16
2012-02-05switch to include-based build rather than sourced-based buildNorbert Thiebaud1-35/+2
2012-01-21Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann1-1/+2
SAL_UNUSED_PARAMETER (expanding to __attribute__ ((unused)) for GCC) is used to annotate legitimately unused parameters, so that static analysis tools can tell legitimately unused parameters from truly unnecessary ones. To that end, some patches for external modules are also added, that are only applied when compiling with GCC and add necessary __attribute__ ((unused)) in headers.
2011-12-20Link most libs and executables with gb_STDLIBS as presumably is intendedTor Lillqvist3-0/+3
2011-12-16Code modules no longer depend on stlport.Stephan Bergmann1-1/+1
2011-12-13Fix for fdo43460 Part IV getLength to isEmptyOlivier Hallot5-11/+11
Part IV Module basic (small fix per demand from Ivan Timofeev) binaryurp bridges
2011-12-07in modules, when we have a env we are in stage gbuildBjoern Michaelsen1-0/+1
2011-11-30catch by constant referenceTakeshi Abe6-19/+19
2011-11-29move reconfigure into gbuildBjoern Michaelsen1-1/+1
2011-11-29Demote SAL_WARN that happens regularly during bridge shutdown to SAL_INFO.Stephan Bergmann1-1/+1
2011-11-28Adapted to new assertion/logging mechanisms.Stephan Bergmann9-109/+113
2011-11-25make gbuild makefiles run independant of pwd againBjoern Michaelsen1-3/+3
2011-11-16tweak gbuild standart Makefile to allow partial build in unsourced envNorbert Thiebaud1-4/+4
This allow to run make in a module wihtout the need to source Env.Host.sh.
2011-10-05simplfy dmake to gbuild bridgefileBjoern Michaelsen1-40/+1
2011-10-04WaE: 'static_cast' : truncation of constant valueTor Lillqvist1-6/+6
2011-09-25convert binaryurp to gbuildMatúš Kukan9-135/+214
2011-09-22just silence the auto_ptr deprecations in isolationCaolán McNamara1-1/+7
2011-09-12sb140: #i113503# mixing system CppUnit and OOo STLport does not work, backed ↵Stephan Bergmann3-4/+7
out a6913c9677c2 For LibO, that just means replacing sal/cppunit.h with sal/precppunit.hxx.
2011-08-15callcatcher: unused methodsCaolán McNamara1-5/+0
2011-08-09Nah, we cannot build binaryurp_cppunittester_all (for iOS) hereTor Lillqvist1-7/+0
It depends on CPPUHELPERLIB which for iOS depends on BOOTSTRAPUNOLIB which hasn't been built yet.
2011-08-01Build static binaryurp unit tester for iOSTor Lillqvist4-5/+159
2011-07-12Remove component_getImplementationEnvironmentMatúš Kukan1-7/+0
2011-06-18ause130: #i117218# change .idl handling to gnu makeHans-Joachim Lankenau1-1/+1
2011-06-07No testing, sorry, when cross-compilingTor Lillqvist1-0/+5
2011-06-03Drop %_EXT% which was always emptyTor Lillqvist1-4/+4
2011-06-02round this one up too to get forms to passCaolán McNamara1-2/+2
2011-06-02add mode lines to new filesCaolán McNamara32-0/+96
2011-06-02round allocated struct return space to sizeof(size_t)Caolán McNamara1-1/+9
this fixes the sfx2 subsequenttest
2011-03-29drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito6-0/+0
2011-01-28sb138: #i115619#, #i116038# use osl_setThreadName in binaryurpsb2-0/+2
2011-01-26sb138: #i116038# fresh implementation of binary URP bridgesb38-0/+6144