merge vosremoval-mutex.diff

In practice the changeset is 'inspired' by vosremoval-mutex.diff
but was essentially redone manually
This commit is contained in:
Norbert Thiebaud 2010-10-16 03:13:32 -05:00
parent 25ecc1fd1a
commit 84869b63b4
31 changed files with 37 additions and 37 deletions

View File

@ -500,7 +500,7 @@
#include "unotools/processfactory.hxx"
#include "vos/mutex.hxx"
#include "osl/mutex.hxx"
#include "xmloff/ProgressBarHelper.hxx"
#include "xmloff/XMLConstantsPropertyHandler.hxx"

View File

@ -1227,7 +1227,7 @@ namespace
{
void lcl_modifyListening( ::sfx2::IModifiableDocument& _rDocument,
const Reference< XStorage >& _rxStorage, ::rtl::Reference< ::sfx2::DocumentStorageModifyListener >& _inout_rListener,
::vos::IMutex& _rMutex, bool _bListen )
::osl::SolarMutex& _rMutex, bool _bListen )
{
Reference< XModifiable > xModify( _rxStorage, UNO_QUERY );
OSL_ENSURE( xModify.is() || !_rxStorage.is(), "lcl_modifyListening: storage can't notify us!" );

View File

@ -80,7 +80,7 @@
#include <sfx2/docstoragemodifylistener.hxx>
#include <tools/string.hxx>
#include <unotools/sharedunocomponent.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <rtl/ref.hxx>
#include <memory>
@ -140,7 +140,7 @@ class OSharedConnectionManager;
//============================================================
/** a class which provides an IMutex interface to an OSL-based mutex
*/
class VosMutexFacade : public ::vos::IMutex
class VosMutexFacade : public ::osl::SolarMutex
{
public:
/** beware of life time: the mutex you pass here must live as least as long

View File

@ -52,7 +52,7 @@
#include <comphelper/namedvaluecollection.hxx>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <comphelper/namedvaluecollection.hxx>
using namespace ::com::sun::star::uno;
@ -533,7 +533,7 @@ Reference< XComponent > SAL_CALL ODocumentContainer::loadComponentFromURL( const
, sal_Int32 /*SearchFlags*/
, const Sequence< PropertyValue >& Arguments ) throw (IOException, IllegalArgumentException, RuntimeException)
{
SolarMutexGuard aSolarGuard;
::SolarMutexGuard aSolarGuard;
MutexGuard aGuard(m_aMutex);
Reference< XComponent > xComp;

View File

@ -89,7 +89,7 @@
#include <comphelper/interaction.hxx>
#include <connectivity/dbtools.hxx>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <sal/macros.h>
#include <com/sun/star/view/XViewSettingsSupplier.hpp>
#include "core_resource.hxx"
@ -1016,7 +1016,7 @@ Any SAL_CALL ODocumentDefinition::execute( const Command& aCommand, sal_Int32 Co
// However, we do /not/ have control over the EmbeddedObject implementation, and from a first look, it seems as
// making it release the own mutex before calling SolarMutex-code is ... difficult, at least.
// So, to be on the same side, we lock the SolarMutex here. Yes, it sucks.
SolarMutexGuard aSolarGuard;
::SolarMutexGuard aSolarGuard;
::osl::ClearableMutexGuard aGuard(m_aMutex);
if ( m_bInExecute )
return aRet;
@ -1271,7 +1271,7 @@ sal_Bool ODocumentDefinition::save(sal_Bool _bApprove)
{
{
SolarMutexGuard aSolarGuard;
::SolarMutexGuard aSolarGuard;
// the request
Reference<XNameAccess> xName(m_xParentContainer,UNO_QUERY);
@ -1367,7 +1367,7 @@ sal_Bool ODocumentDefinition::saveAs()
try
{
{
SolarMutexGuard aSolarGuard;
::SolarMutexGuard aSolarGuard;
// the request
Reference<XNameAccess> xName(m_xParentContainer,UNO_QUERY);

View File

@ -42,7 +42,7 @@
#include <cppuhelper/weakref.hxx>
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
namespace dbaccess
{

View File

@ -36,7 +36,7 @@
/** === end UNO includes === **/
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
//........................................................................
namespace dbmm

View File

@ -61,7 +61,7 @@
#include <com/sun/star/frame/FrameSearchFlag.hpp>
#include <com/sun/star/lang/WrappedTargetRuntimeException.hpp>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <svtools/sfxecode.hxx>
#include <unotools/moduleoptions.hxx>
#include <toolkit/helper/vclunohelper.hxx>

View File

@ -124,7 +124,7 @@
#include <svx/dbaobjectex.hxx>
#include <svx/svxdlg.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "AppView.hxx"
#include "browserids.hxx"
#include "dbu_reghelper.hxx"

View File

@ -92,7 +92,7 @@
#include <svtools/fileview.hxx>
#include <tools/diagnose_ex.h>
#include "defaultobjectnamecheck.hxx"
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "subcomponentmanager.hxx"
//........................................................................

View File

@ -80,7 +80,7 @@
#include <vcl/mnemonic.hxx>
#include <vcl/svapp.hxx>
#include <vcl/waitobj.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
//........................................................................
namespace dbaui

View File

@ -43,7 +43,7 @@
#include <tools/diagnose_ex.h>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <hash_map>
#include <algorithm>

View File

@ -45,7 +45,7 @@
#include <unotools/moduleoptions.hxx>
#include <tools/diagnose_ex.h>
#include <svtools/menuoptions.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "dbu_reghelper.hxx"
#include "UITools.hxx"

View File

@ -81,7 +81,7 @@
#include <vcl/msgbox.hxx>
#include <vcl/stdtext.hxx>
#include <vcl/waitobj.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <algorithm>
#include <functional>

View File

@ -36,7 +36,7 @@
#include <comphelper/types.hxx>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <tools/diagnose_ex.h>
//........................................................................

View File

@ -54,7 +54,7 @@
#include <vcl/msgbox.hxx>
#include "dbaccess_helpid.hrc"
#include "UITools.hxx"
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <svtools/imgdef.hxx>
#include "TablesSingleDlg.hxx"
#include <tools/diagnose_ex.h>

View File

@ -64,7 +64,7 @@
#include "adtabdlg.hxx"
#include <vcl/waitobj.hxx>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "UITools.hxx"
#include <boost/optional.hpp>

View File

@ -92,7 +92,7 @@
#include <tools/diagnose_ex.h>
#include <vcl/msgbox.hxx>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
extern "C" void SAL_CALL createRegistryInfo_OQueryControl()
{

View File

@ -73,7 +73,7 @@
#include <tools/diagnose_ex.h>
#include <vcl/waitobj.hxx>
#include <osl/thread.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#define MAX_THREADS 10
@ -489,7 +489,7 @@ void ORelationController::mergeData(const TTableConnectionData& _aConnectionData
// -----------------------------------------------------------------------------
IMPL_LINK( ORelationController, OnThreadFinished, void*, /*NOTINTERESTEDIN*/ )
{
SolarMutexGuard aSolarGuard;
::SolarMutexGuard aSolarGuard;
::osl::MutexGuard aGuard( getMutex() );
try
{

View File

@ -46,7 +46,7 @@
#include "dbu_uno.hrc"
#include "paramdialog.hxx"
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "CollectionView.hxx"
#include "UITools.hxx"

View File

@ -43,7 +43,7 @@
#include <vcl/msgbox.hxx>
// --- needed because of the solar mutex
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
// ---

View File

@ -56,7 +56,7 @@
#include <com/sun/star/chart2/data/DatabaseDataProvider.hpp>
#include <vcl/svapp.hxx>
#include <vcl/virdev.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <com/sun/star/beans/XMultiPropertyStates.hpp>
#include <com/sun/star/document/EventObject.hpp>
#include <com/sun/star/document/XEventListener.hpp>

View File

@ -55,7 +55,7 @@
#include <vcl/svapp.hxx>
#include <dbaccess/singledoccontroller.hxx>
#include <svx/unoshape.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
namespace rptui
{

View File

@ -54,7 +54,7 @@
#include <vcl/svapp.hxx>
#include <dbaccess/singledoccontroller.hxx>
#include <svx/unoshape.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
namespace rptui
{

View File

@ -64,7 +64,7 @@
#include "RptDef.hxx"
// for locking SolarMutex: svapp + mutex
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <sal/macros.h>
#include <boost/bind.hpp>

View File

@ -59,7 +59,7 @@
#include <xmloff/xmlmetai.hxx>
#include <com/sun/star/util/XModifiable.hpp>
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <svtools/sfxecode.hxx>
#include "xmlEnums.hxx"
#include "xmlStyleImport.hxx"

View File

@ -55,7 +55,7 @@
#include <vcl/fldunit.hxx>
#include "metadata.hxx"
#include <vcl/svapp.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "helpids.hrc"
#include "uistrings.hrc"
#include "RptResId.hrc"

View File

@ -38,7 +38,7 @@
#include <vcl/svapp.hxx>
#include <vcl/status.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <toolkit/helper/vclunohelper.hxx>
namespace rptui

View File

@ -43,7 +43,7 @@
#include <svtools/miscopt.hxx>
#include <unotools/moduleoptions.hxx>
#include <svtools/menuoptions.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <svx/svxids.hrc>
#define ITEMID_COLOR 1
#define ITEMID_BRUSH 2

View File

@ -143,7 +143,7 @@
#include <unotools/syslocale.hxx>
#include <unotools/viewoptions.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include "PropertyForward.hxx"
#include "SectionWindow.hxx"

View File

@ -32,7 +32,7 @@
#include <ReportControllerObserver.hxx>
#include <ReportController.hxx>
#include <svl/smplhint.hxx>
#include <vos/mutex.hxx>
#include <osl/mutex.hxx>
#include <vcl/svapp.hxx>
#include <com/sun/star/report/XFormattedField.hpp>
#include <com/sun/star/awt/FontSlant.hpp>