Files
libreoffice/sw/source/core/docnode/cancellablejob.cxx
Oliver Bolte e16a9ede18 INTEGRATION: CWS swqbf91 (1.1.2); FILE ADDED
2007/06/11 09:09:57 od 1.1.2.2: add pre-compiled header include after resync
2007/05/03 15:28:02 od 1.1.2.1: #i73788# new class <CancellableJob>
2007-07-18 12:30:14 +00:00

55 lines
1.8 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: cancellablejob.cxx,v $
*
* $Revision: 1.2 $
*
* last change: $Author: obo $ $Date: 2007-07-18 13:30:14 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#include "precompiled_sw.hxx"
#ifndef _CANCELLABLEJOB_HXX
#include <cancellablejob.hxx>
#endif
#ifndef _OBSERVABLETHREAD_HXX
#include <observablethread.hxx>
#endif
CancellableJob::CancellableJob( const rtl::Reference< ObservableThread >& rThread ) :
mrThread( rThread )
{
}
// ::com::sun::star::util::XCancellable:
void SAL_CALL CancellableJob::cancel() throw (com::sun::star::uno::RuntimeException)
{
mrThread->join();
}