Commit Graph

23 Commits

Author SHA1 Message Date
5045400eb3 Replace use of o3tl::heap_ptr with std::unique_ptr
Change-Id: Idbcb1be271ccda1885728ec5a6a75cfaec15f6f5
2014-09-24 12:44:55 +02:00
e7bc3cab01 remove boilerplate in UNO Exception constructor calls
Now that we have default values for Exception constructor params,
remove lots of boilerplate code.

Change-Id: I620bd641eecfed38e6123873b3b94aaf47922e74
2014-05-23 15:06:00 +02:00
cf1f27affc auto_ptr -> heap_ptr
Change-Id: I8e7845c8148339fb305666e316b74fd134774ea3
2014-02-07 18:43:32 +01:00
f6245d5bcb fdo#56511 Don't unduly delay Bridge termination
When terminate is called from the Reader or Writer thread, the final terminate
was delayed until disposal of the BridgeFactory, as an unfortunate consequence
of always trying to join on the Reader and Writer.  Instead, forgo the join in
such a case and rely on the underlying osl::Thread becoming detached after
calling termiante.

Change-Id: Ifba788c4d0d2e9b14b4f7f6b5f0f1380b712ce36
2014-02-07 14:37:51 +01:00
70fe99d019 Minor simplification
Change-Id: I031409043f12bdfe4b8c838d74db8a60576fd507
2013-11-28 08:26:02 +01:00
289e54feab binaryurp: silently ignore superfluous MUSTREPLY/SYNCHRONOUS flags
...in a non-oneway call.  This can happen when a pre LO 4 entity is calling a
LO 4 entity post 90eac3e69749a9227c4b6902b1f3cef1e338c6d1
"API CHANGE remove [oneway] method attributes."  (See mail thread starting at
<http://mail-archives.apache.org/mod_mbox/openoffice-api/201311.mbox/%3Ca4e7f34d-b8cb-4d5a-890f-6894d3410265%40ucimail2.uci.cu%3E>
"hi, code in Java.")

Change-Id: I9f800a979d84a95cc5cd96f75ee7472e8cf6cf4b
2013-11-27 15:01:44 +01:00
66a175834c c++ API: use css alias in generated headers, adds global css decl
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
2012-11-30 14:36:36 +01:00
b854de954f deprecate oustringostreaminserter.hxx
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>
2012-09-18 10:10:06 +00:00
7a7a2c5495 Cosmetics
Change-Id: I7b217c4fb48bbee4a2872d15cf23a955b464ffca
2012-09-05 10:12:40 +02:00
a60f911214 OUString and RTL_CONSTASCII cleanup
Change-Id: Ic56451b2c13d8561bb6e6ee92bf9147b35640a5c
2012-09-05 09:26:10 +02:00
e47fe5cc40 Change rtl::OUString to OUString
My first commit. Any problem, question, warnings, please tell me.

Change-Id: Ibb02fe15776f3ffe74ddb9488c63a45c447bb493
2012-08-22 16:45:38 +02:00
b3d8fd8a41 re-base on ALv2 code. 2012-06-12 17:51:46 +01:00
2fa2660b55 Better fix for ThreadPool/ORequestThread life cycle
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-23 10:10:51 +02:00
a4abe212c1 Unused includes 2012-03-20 08:56:53 +01:00
d21fb1451e Adapted Reader/Writer to safer-to-use salhelper::Thread 2012-02-23 10:47:36 +01:00
9201704ede Fix for fdo43460 Part IV getLength to isEmpty
Part IV
Module
basic (small fix per demand from Ivan Timofeev)
binaryurp
bridges
2011-12-13 00:11:25 +04:00
7113c7152d catch by constant reference 2011-11-30 11:27:42 +09:00
ebdbd2b578 Adapted to new assertion/logging mechanisms. 2011-11-28 22:05:46 +01:00
871426533f just silence the auto_ptr deprecations in isolation 2011-09-22 15:01:05 +01:00
bc09ec8dee add mode lines to new files 2011-06-02 16:49:28 +01:00
a09675b4c5 drop bogus executable flag from [ch]xx/bas/asm files 2011-03-29 21:39:03 +01:00
sb
f78c98fc9c sb138: #i115619#, #i116038# use osl_setThreadName in binaryurp 2011-01-28 13:41:34 +01:00
sb
138ab06ecc sb138: #i116038# fresh implementation of binary URP bridge 2011-01-26 09:26:59 +01:00