Commit Graph

17 Commits

Author SHA1 Message Date
ed81c7fb25 fixincludeguards.sh: cppu 2014-04-19 11:10:06 +02:00
70cc2b191b First batch of adding SAL_OVERRRIDE to overriding function declarations
...mostly done with a rewriting Clang plugin, with just some manual tweaking
necessary to fix poor macro usage.

Change-Id: I71fa20213e86be10de332ece0aa273239df7b61a
2014-03-26 16:39:26 +01:00
f480f26e61 Remove visual noise from cppu
Change-Id: Ib776a6e5397eb9731cf908c4015642c29b320ff6
Reviewed-on: https://gerrit.libreoffice.org/8247
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
2014-02-27 06:12:56 -06:00
34a44156b3 cppu: sal_Bool -> bool
Change-Id: I1288f1f6f38d1475b4eb5272509e479bd9f2552d
2014-02-17 17:55:18 +01:00
c3a6a57fc2 re-base on ALv2 code. 2012-06-13 14:18:29 +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
b68640c44e Prevent creation of new ORequestThreads during shutdown. 2011-12-19 16:08:20 +01:00
a715e1b3d0 Add vim/emacs modelines to all source files
Fixes #fdo30794
Based on bin/add-modelines script (originally posted in mail
1286706307.1871.1399280959@webmail.messagingengine.com)

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
2010-10-14 17:04:31 +02:00
521a9f6f76 #i107490# cppu lifecycle cleanup 2010-10-11 12:37:08 +01:00
7c80db2eb3 changefileheader2: #i109125#: change source file copyright notice from Sun Microsystems to Oracle; remove CVS style keywords (RCSfile, Revision) 2010-02-12 15:01:35 +01:00
b142db763b INTEGRATION: CWS changefileheader (1.6.90); FILE MERGED
2008/04/01 15:10:33 thb 1.6.90.2: #i85898# Stripping all external header guards
2008/03/31 07:23:20 rt 1.6.90.1: #i87441# Change license header to LPGL v3.
2008-04-11 09:34:18 +00:00
9799afcea2 INTEGRATION: CWS jsc9 (1.5.2); FILE MERGED
2006/04/26 14:15:33 jsc 1.5.2.1: #134738# move fixes back to previous version
2006-04-26 19:50:18 +00:00
0c047c75de INTEGRATION: CWS sb49 (1.4.40); FILE MERGED
2006/03/22 10:14:06 sb 1.4.40.1: #i63397# Keep objects alive long enough so that threads still running while atexit handlers are processed do not access dead objects.
2006-04-19 12:49:20 +00:00
04fadec2fc INTEGRATION: CWS ooo19126 (1.3.190); FILE MERGED
2005/09/05 13:54:26 rt 1.3.190.1: #i54170# Change license header: remove SISSL
2005-09-08 07:47:30 +00:00
247ed90574 #include <osl/types> replaced by <sal/types.h> 2001-03-20 14:30:39 +00:00
c4b2ed0d5b #83737# uno_threadpool_disposeThreads now offers a feature to join on all previously created threads (when the method is called with a 0 as bridgeID) 2001-02-20 11:43:51 +00:00
b525a3115f initial import 2000-09-18 14:29:57 +00:00