summaryrefslogtreecommitdiff
path: root/svl/source/notify
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-16 03:20:00 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:38 -0500
commitd88b292704957818eff9a348a524b5c90b40031b (patch)
treeeabf039491304b2c13f3bd77ca0b6d58c3dba1b8 /svl/source/notify
parent98b2c08dff4d00b3e7a2e001c326ebe27dae4549 (diff)
merge vosremoval-mutex.diff
In practice the changeset is 'inspired' by vosremoval-mutex.diff but was essentially redone manually
Diffstat (limited to 'svl/source/notify')
-rw-r--r--svl/source/notify/cancel.cxx12
1 files changed, 6 insertions, 6 deletions
diff --git a/svl/source/notify/cancel.cxx b/svl/source/notify/cancel.cxx
index c84605c6202c..76ac32d4211d 100644
--- a/svl/source/notify/cancel.cxx
+++ b/svl/source/notify/cancel.cxx
@@ -31,14 +31,14 @@
#define _SFX_CANCEL_CXX
#include <svl/cancel.hxx>
-#include <vos/mutex.hxx>
+#include <osl/mutex.hxx>
#include <tools/debug.hxx>
#include <svl/smplhint.hxx>
#include <svl/cnclhint.hxx>
#include <rtl/instance.hxx>
-namespace { struct lclMutex : public rtl::Static< ::vos::OMutex, lclMutex >{}; }
+namespace { struct lclMutex : public rtl::Static< ::osl::Mutex, lclMutex >{}; }
//=========================================================================
@@ -67,7 +67,7 @@ BOOL SfxCancelManager::CanCancel() const
*/
{
- ::vos::OGuard aGuard( lclMutex::get() );
+ ::osl::MutexGuard aGuard( lclMutex::get() );
return _aJobs.Count() > 0 || ( _pParent && _pParent->CanCancel() );
}
@@ -82,7 +82,7 @@ void SfxCancelManager::Cancel( BOOL bDeep )
*/
{
- ::vos::OGuard aGuard( lclMutex::get() );
+ ::osl::MutexGuard aGuard( lclMutex::get() );
SfxCancelManagerWeak xWeak( this );
for ( USHORT n = _aJobs.Count(); n-- && xWeak.Is(); )
if ( n < _aJobs.Count() )
@@ -111,7 +111,7 @@ void SfxCancelManager::InsertCancellable( SfxCancellable *pJob )
}
#endif
- ::vos::OClearableGuard aGuard( lclMutex::get() );
+ ::osl::ClearableMutexGuard aGuard( lclMutex::get() );
_aJobs.C40_INSERT( SfxCancellable, pJob, _aJobs.Count() );
aGuard.clear();
@@ -132,7 +132,7 @@ void SfxCancelManager::RemoveCancellable( SfxCancellable *pJob )
*/
{
- ::vos::OClearableGuard aGuard( lclMutex::get() );
+ ::osl::ClearableMutexGuard aGuard( lclMutex::get() );
const SfxCancellable *pTmp = pJob;
USHORT nPos = _aJobs.GetPos( pTmp );
if ( nPos != 0xFFFF )