summaryrefslogtreecommitdiffstats
path: root/binaryurp/source
Commit message (Collapse)AuthorAgeFilesLines
* #i122208# replace the binaryurp cache for improved C++ compatibilityHerbert Dürr2013-05-283-81/+79
| | | | | | | | | Failing to instantiatie incomplete types like the Map::iterator in binaryurp Cache's Entry members is allowed by the C++ standard. The rewrite makes it more compliant with other C++ compilers/STLs. And interesting alternative would be to use boost's multi_index_container. git-svn-id: http://svn.apache.org/repos/asf/openoffice/branches/rejuvenate01@1480367 13f79535-47bb-0310-9956-ffa450edef68
* remove needless forward rtl::OUString declarationsLuboš Luňák2013-04-071-3/+0
| | | | Change-Id: I97d91a758dd82d64768d75c1d2ddd279de5f6034
* RTL_CONSTASCII_USTRINGPARAM removalsKrisztian Pinter2013-02-191-1/+1
| | | | | | | Change-Id: Ib483f271d3c826a2b7192b22a174ff9f7b18c3f8 Reviewed-on: https://gerrit.libreoffice.org/2241 Reviewed-by: Olivier Hallot <olivier.hallot@alta.org.br> Tested-by: Olivier Hallot <olivier.hallot@alta.org.br>
* c++ API: use css alias in generated headers, adds global css declThorsten Behrens2012-11-3011-46/+0
| | | | | | | | | | | | This changes all generated API headers (.hpp and .hdl) to use a namespace alias 'css' instead of the pointlessly long com::sun::star Makes the change in cppumaker & associated tools, adds a global namespace alias definition in sal/types.h, and removes a kiloton of local, now pointless-to-harmful versions of that alias from all over the code. Change-Id: Ice5a644a6b971a981f01dc0589d48f5add31cc0f
* Use prefixTor Lillqvist2012-10-012-2/+2
| | | | Change-Id: Ic1fcb3078757d7948bbb4ddb155ab9584e861c12
* Replace usage of rtl_*Memory with equivalent from string.hArnaud Versini2012-10-011-3/+3
| | | | | | | Change-Id: I50ffc10f007f03c3252ef0196b59b881429cc159 Reviewed-on: https://gerrit.libreoffice.org/734 Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com> Tested-by: Norbert Thiebaud <nthiebaud@gmail.com>
* replace remaining InterlockedCount() with inlined versionNorbert Thiebaud2012-09-251-2/+2
| | | | | | | Change-Id: Ifcfa48fc87f905a91470a5b0fd597b02f220784c Reviewed-on: https://gerrit.libreoffice.org/671 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* deprecate oustringostreaminserter.hxxNorbert Thiebaud2012-09-182-4/+0
| | | | | | | | | | | | | | | | | | | the intent of this header has canged over time. now it is already systematically included with ustring.hxx and the operator overload it provide fit nicely there... Just to be safe, since that include as been added to the api during the 3.5 timeframe and therefore is already in 'production' the header remain and simply attempt to include ustring.hxx but a warning is issued indicating that this header should not be used anymore... in a couple of major release we will thenr emove it completely All internal users of that header are converted. Change-Id: I8934c55f089e29d78c0f5649b7c87b2ecf024bad Reviewed-on: https://gerrit.libreoffice.org/634 Tested-by: Norbert Thiebaud <nthiebaud@gmail.com> Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
* fdo#46808, Adapt bridge::BridgeFactory UNO service to new styleNoel Grandin2012-09-171-2/+2
| | | | | | | Create a merged XBridgeFactory2 interface for this service to implement. Which is backwards-compatible, but does not require creating a new service. Change-Id: I7309f4d30f0e772bc203c701eb3407b920ffafcc
* CosmeticsStephan Bergmann2012-09-058-75/+50
| | | | Change-Id: I7b217c4fb48bbee4a2872d15cf23a955b464ffca
* OUString and RTL_CONSTASCII cleanupRicardo Montania2012-09-0510-221/+99
| | | | Change-Id: Ic56451b2c13d8561bb6e6ee92bf9147b35640a5c
* Change rtl::OUString to OUStringRicardo Montania2012-08-2221-170/+170
| | | | | | My first commit. Any problem, question, warnings, please tell me. Change-Id: Ibb02fe15776f3ffe74ddb9488c63a45c447bb493
* fdo#43433: Binary URP works gracefully with old Java URPStephan Bergmann2012-08-151-1/+18
| | | | | | ...which did not support protocol properties yet. Change-Id: Ic5bb346764fb039856e16169d5ae96d01422e7e0
* removed unnecessary forward declarations of classTakeshi Abe2012-07-042-2/+0
| | | | Change-Id: I0d6aad17c471b6edd584c668dc7ff054090c185c
* re-base on ALv2 code.Michael Meeks2012-06-1231-806/+527
|
* Better fix for ThreadPool/ORequestThread life cycleStephan Bergmann2012-05-236-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
* Fixed ThreadPool (and dependent ORequestThread) life cycleStephan Bergmann2012-05-162-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
* put the missing type into the exception messageMichael Stahl2012-04-141-2/+4
|
* Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi2012-04-063-6/+3
|
* Unused includesStephan Bergmann2012-03-202-2/+0
|
* Clarifying comment addedStephan Bergmann2012-03-081-0/+6
|
* Adapted Reader/Writer to safer-to-use salhelper::ThreadStephan Bergmann2012-02-235-54/+16
|
* Removed some unused parameters; added SAL_UNUSED_PARAMETER.Stephan Bergmann2012-01-211-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.
* Fix for fdo43460 Part IV getLength to isEmptyOlivier Hallot2011-12-135-11/+11
| | | | | | | | Part IV Module basic (small fix per demand from Ivan Timofeev) binaryurp bridges
* catch by constant referenceTakeshi Abe2011-11-305-18/+18
|
* Demote SAL_WARN that happens regularly during bridge shutdown to SAL_INFO.Stephan Bergmann2011-11-291-1/+1
|
* Adapted to new assertion/logging mechanisms.Stephan Bergmann2011-11-289-109/+113
|
* convert binaryurp to gbuildMatúš Kukan2011-09-251-69/+0
|
* just silence the auto_ptr deprecations in isolationCaolán McNamara2011-09-221-1/+7
|
* callcatcher: unused methodsCaolán McNamara2011-08-151-5/+0
|
* Remove component_getImplementationEnvironmentMatúš Kukan2011-07-121-7/+0
|
* round this one up too to get forms to passCaolán McNamara2011-06-021-2/+2
|
* add mode lines to new filesCaolán McNamara2011-06-0230-0/+90
|
* round allocated struct return space to sizeof(size_t)Caolán McNamara2011-06-021-1/+9
| | | | this fixes the sfx2 subsequenttest
* drop bogus executable flag from [ch]xx/bas/asm filesFrancisco Saito2011-03-296-0/+0
|
* sb138: #i115619#, #i116038# use osl_setThreadName in binaryurpsb2011-01-282-0/+2
|
* sb138: #i116038# fresh implementation of binary URP bridgesb2011-01-2632-0/+5830