summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNorbert Thiebaud <nthiebaud@gmail.com>2010-10-11 01:26:24 -0500
committerNorbert Thiebaud <nthiebaud@gmail.com>2010-10-25 19:55:36 -0500
commitd9d3f2877a9cc1b8df9b3e7e87d018bab068d503 (patch)
treef5127a600e63e2bb019c1964d390b07f07f70c10
parentaf8a21ced61a31e3c696d2da8ced55b0eabdefa8 (diff)
merge vosremoval-signal patch
-rw-r--r--tools/inc/pch/precompiled_tools.hxx2
-rw-r--r--tools/source/rc/resmgr.cxx111
-rw-r--r--vcl/source/app/svmain.cxx51
-rw-r--r--vos/inc/vos/signal.hxx100
-rw-r--r--vos/source/makefile.mk2
-rw-r--r--vos/source/signal.cxx66
6 files changed, 79 insertions, 253 deletions
diff --git a/tools/inc/pch/precompiled_tools.hxx b/tools/inc/pch/precompiled_tools.hxx
index fa081c2f88..1d789d028d 100644
--- a/tools/inc/pch/precompiled_tools.hxx
+++ b/tools/inc/pch/precompiled_tools.hxx
@@ -63,6 +63,7 @@
#include "osl/mutex.hxx"
#include "osl/process.h"
#include "osl/security.h"
+#include "osl/signal.h"
#include "osl/thread.h"
#include "rtl/alloc.h"
@@ -87,7 +88,6 @@
#include "vos/macros.hxx"
#include "vos/mutex.hxx"
#include "vos/process.hxx"
-#include "vos/signal.hxx"
#include "vos/timer.hxx"
//---MARKER---
#endif
diff --git a/tools/source/rc/resmgr.cxx b/tools/source/rc/resmgr.cxx
index 34efb70bf3..14caa3b351 100644
--- a/tools/source/rc/resmgr.cxx
+++ b/tools/source/rc/resmgr.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -32,7 +32,6 @@
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
-#include <vos/signal.hxx>
#include <tools/debug.hxx>
#include <tools/table.hxx>
#include <tools/stream.hxx>
@@ -44,6 +43,7 @@
#include <osl/thread.h>
#include <osl/file.hxx>
#include <osl/mutex.hxx>
+#include <osl/signal.h>
#include <rtl/ustrbuf.hxx>
#include <tools/urlobj.hxx>
#include <rtl/instance.hxx>
@@ -126,39 +126,39 @@ public:
class ResMgrContainer
{
static ResMgrContainer* pOneInstance;
-
+
struct ContainerElement
{
InternalResMgr* pResMgr;
OUString aFileURL;
int nRefCount;
int nLoadCount;
-
+
ContainerElement() :
pResMgr( NULL ),
nRefCount( 0 ),
nLoadCount( 0 )
{}
};
-
+
std::hash_map< OUString, ContainerElement, OUStringHash> m_aResFiles;
com::sun::star::lang::Locale m_aDefLocale;
-
+
ResMgrContainer() { init(); }
~ResMgrContainer();
-
+
void init();
public:
- static ResMgrContainer& get();
+ static ResMgrContainer& get();
static void release();
-
+
InternalResMgr* getResMgr( const OUString& rPrefix,
com::sun::star::lang::Locale& rLocale,
bool bForceNewInstance = false
);
InternalResMgr* getNextFallback( InternalResMgr* pResMgr );
-
+
void freeResMgr( InternalResMgr* pResMgr );
void setDefLocale( const com::sun::star::lang::Locale& rLocale )
@@ -199,7 +199,7 @@ void ResMgrContainer::init()
// get resource path
std::list< OUString > aDirs;
sal_Int32 nIndex = 0;
-
+
// 1. fixed locations
rtl::OUString uri(
RTL_CONSTASCII_USTRINGPARAM("$BRAND_BASE_DIR/program/resource"));
@@ -209,7 +209,7 @@ void ResMgrContainer::init()
RTL_CONSTASCII_USTRINGPARAM("$OOO_BASE_DIR/program/resource"));
rtl::Bootstrap::expandMacros(uri);
aDirs.push_back(uri);
-
+
// 2. in STAR_RESOURCEPATH
const sal_Char* pEnv = getenv( "STAR_RESOURCEPATH" );
if( pEnv )
@@ -285,7 +285,7 @@ InternalResMgr* ResMgrContainer::getResMgr( const OUString& rPrefix,
com::sun::star::lang::Locale aLocale( rLocale );
OUStringBuffer aSearch( rPrefix.getLength() + 16 );
std::hash_map< OUString, ContainerElement, OUStringHash >::iterator it = m_aResFiles.end();
-
+
int nTries = 0;
if( aLocale.Language.getLength() > 0 )
nTries = 1;
@@ -404,10 +404,10 @@ InternalResMgr* ResMgrContainer::getResMgr( const OUString& rPrefix,
// at this point it->second.pResMgr must be filled either by creating a new one
// (then the refcount is still 0) or because we already had one
InternalResMgr* pImp = it->second.pResMgr;
-
+
if( it->second.nRefCount == 0 )
it->second.nLoadCount++;
-
+
// for SimpleResMgr
if( bForceNewInstance )
{
@@ -433,7 +433,7 @@ InternalResMgr* ResMgrContainer::getResMgr( const OUString& rPrefix,
}
else
it->second.nRefCount++;
-
+
return pImp;
}
@@ -498,7 +498,7 @@ struct ImpContent
struct ImpContentLessCompare : public ::std::binary_function< ImpContent, ImpContent, bool>
{
- inline bool operator() (const ImpContent& lhs, const ImpContent& rhs) const
+ inline bool operator() (const ImpContent& lhs, const ImpContent& rhs) const
{
return lhs.nTypeAndId < rhs.nTypeAndId;
}
@@ -506,11 +506,11 @@ struct ImpContentLessCompare : public ::std::binary_function< ImpContent, ImpCon
struct ImpContentMixLessCompare : public ::std::binary_function< ImpContent, sal_uInt64, bool>
{
- inline bool operator() (const ImpContent& lhs, const sal_uInt64& rhs) const
+ inline bool operator() (const ImpContent& lhs, const sal_uInt64& rhs) const
{
return lhs.nTypeAndId < rhs;
}
- inline bool operator() (const sal_uInt64& lhs, const ImpContent& rhs) const
+ inline bool operator() (const sal_uInt64& lhs, const ImpContent& rhs) const
{
return lhs < rhs.nTypeAndId;
}
@@ -800,7 +800,7 @@ void ResMgr::RscError_Impl( const sal_Char* pMessage, ResMgr* pResMgr,
ResMgrContainer::get().getResMgr( pResMgr->pImpRes->aPrefix,
pResMgr->pImpRes->aLocale,
true );
-
+
ResMgr* pNewResMgr = new ResMgr( pImp );
ByteString aStr = OUStringToOString( pResMgr->GetFileName(), RTL_TEXTENCODING_UTF8 );
@@ -836,19 +836,20 @@ void ResMgr::RscError_Impl( const sal_Char* pMessage, ResMgr* pResMgr,
static void RscException_Impl()
{
- switch ( NAMESPACE_VOS(OSignalHandler)::raise( OSL_SIGNAL_USER_RESOURCEFAILURE, (void*)"" ) )
+ switch ( osl_raiseSignal( OSL_SIGNAL_USER_RESOURCEFAILURE, (void*)"" ) )
{
- case NAMESPACE_VOS(OSignalHandler)::TAction_CallNextHandler:
- abort();
+ case osl_Signal_ActCallNextHdl:
+ abort();
- case NAMESPACE_VOS(OSignalHandler)::TAction_Ignore:
- return;
+ case osl_Signal_ActIgnore:
+ return;
- case NAMESPACE_VOS(OSignalHandler)::TAction_AbortApplication:
- abort();
+ case osl_Signal_ActAbortApp:
+ abort();
- case NAMESPACE_VOS(OSignalHandler)::TAction_KillApplication:
- exit(-1);
+ default:
+ case osl_Signal_ActKillApp:
+ exit(-1);
}
}
@@ -989,7 +990,7 @@ ResMgr::~ResMgr()
osl::Guard<osl::Mutex> aGuard( getResMgrMutex() );
ResMgrContainer::get().freeResMgr( pImpRes );
-
+
// clean up possible left rc stack frames
while( nCurStack > 0 )
{
@@ -1007,7 +1008,7 @@ void ResMgr::incStack()
if( nCurStack >= int(aStack.size()) )
aStack.push_back( ImpRCStack() );
aStack[nCurStack].Clear();
-
+
DBG_ASSERT( nCurStack < 32, "Resource stack unreasonably large" );
}
@@ -1027,7 +1028,7 @@ void ResMgr::decStack()
{
#if OSL_DEBUG_LEVEL > 1
OSL_TRACE( "returning from fallback %s\n",
- OUStringToOString(pFallbackResMgr->GetFileName(), osl_getThreadTextEncoding() ).getStr() );
+ OUStringToOString(pFallbackResMgr->GetFileName(), osl_getThreadTextEncoding() ).getStr() );
#endif
delete pFallbackResMgr;
pFallbackResMgr = NULL;
@@ -1080,14 +1081,14 @@ BOOL ResMgr::IsAvailable( const ResId& rId, const Resource* pResObj ) const
if ( !pMgr )
pMgr = this;
-
+
if( pMgr->pFallbackResMgr )
{
ResId aId( rId );
aId.SetResMgr( NULL );
return pMgr->pFallbackResMgr->IsAvailable( aId, pResObj );
}
-
+
if ( !pResObj || pResObj == pMgr->aStack[pMgr->nCurStack].pResObj )
{
if ( !pClassRes )
@@ -1114,7 +1115,7 @@ void* ResMgr::GetClass()
if( pFallbackResMgr )
return pFallbackResMgr->GetClass();
-
+
return aStack[nCurStack].pClassRes;
}
@@ -1134,7 +1135,7 @@ BOOL ResMgr::GetResource( const ResId& rId, const Resource* pResObj )
ResMgr* pMgr = rId.GetResMgr();
if ( pMgr && (this != pMgr) )
return pMgr->GetResource( rId, pResObj );
-
+
// normally Increment will pop the context; this is
// not possible in RC_NOTFOUND case, so pop a frame here
ImpRCStack* pTop = &aStack[nCurStack];
@@ -1247,7 +1248,7 @@ void ResMgr::PopContext( const Resource* pResObj )
pFallbackResMgr->PopContext( pResObj );
return;
}
-
+
#ifdef DBG_UTIL
if ( DbgIsResource() )
{
@@ -1298,7 +1299,7 @@ RSHEADER_TYPE* ResMgr::CreateBlock( const ResId& rId )
aId.SetResMgr( NULL );
return pFallbackResMgr->CreateBlock( aId );
}
-
+
RSHEADER_TYPE* pHeader = NULL;
if ( GetResource( rId ) )
{
@@ -1384,7 +1385,7 @@ sal_uInt32 ResMgr::GetRemainSize()
if( pFallbackResMgr )
return pFallbackResMgr->GetRemainSize();
-
+
const ImpRCStack& rTop = aStack[nCurStack];
return (sal_uInt32)((long)(BYTE *)rTop.pResource +
rTop.pResource->GetLocalOff() -
@@ -1399,11 +1400,11 @@ void* ResMgr::Increment( sal_uInt32 nSize )
if( pFallbackResMgr )
return pFallbackResMgr->Increment( nSize );
-
+
ImpRCStack& rStack = aStack[nCurStack];
if( (rStack.Flags & RC_NOTFOUND) )
return rStack.pClassRes;
-
+
BYTE* pClassRes = (BYTE*)rStack.pClassRes + nSize;
rStack.pClassRes = pClassRes;
@@ -1679,9 +1680,9 @@ ResMgr* ResMgr::CreateResMgr( const sal_Char* pPrefixName,
osl::Guard<osl::Mutex> aGuard( getResMgrMutex() );
OUString aPrefix( pPrefixName, strlen( pPrefixName ), osl_getThreadTextEncoding() );
-
+
if( ! aLocale.Language.getLength() )
- aLocale = ResMgrContainer::get().getDefLocale();
+ aLocale = ResMgrContainer::get().getDefLocale();
InternalResMgr* pImp = ResMgrContainer::get().getResMgr( aPrefix, aLocale );
return pImp ? new ResMgr( pImp ) : NULL;
@@ -1699,7 +1700,7 @@ ResMgr* ResMgr::SearchCreateResMgr(
if( ! rLocale.Language.getLength() )
rLocale = ResMgrContainer::get().getDefLocale();
-
+
InternalResMgr* pImp = ResMgrContainer::get().getResMgr( aPrefix, rLocale );
return pImp ? new ResMgr( pImp ) : NULL;
}
@@ -1712,7 +1713,7 @@ INT16 ResMgr::ReadShort()
if( pFallbackResMgr )
return pFallbackResMgr->ReadShort();
-
+
INT16 n = GetShort( GetClass() );
Increment( sizeof( INT16 ) );
return n;
@@ -1726,7 +1727,7 @@ INT32 ResMgr::ReadLong()
if( pFallbackResMgr )
return pFallbackResMgr->ReadLong();
-
+
INT32 n = GetLong( GetClass() );
Increment( sizeof( INT32 ) );
return n;
@@ -1740,7 +1741,7 @@ UniString ResMgr::ReadStringWithoutHook()
if( pFallbackResMgr )
return pFallbackResMgr->ReadStringWithoutHook();
-
+
UniString aRet;
const ImpRCStack& rTop = aStack[nCurStack];
@@ -1752,7 +1753,7 @@ UniString ResMgr::ReadStringWithoutHook()
}
else
Increment( GetStringWithoutHook( aRet, (const BYTE*)GetClass() ) );
-
+
return aRet;
}
@@ -1772,7 +1773,7 @@ ULONG ResMgr::GetAutoHelpId()
if( pFallbackResMgr )
return pFallbackResMgr->GetAutoHelpId();
-
+
DBG_ASSERT( nCurStack, "resource stack empty in Auto help id generation" );
if( nCurStack < 1 || nCurStack > 2 )
return 0;
@@ -1784,7 +1785,7 @@ ULONG ResMgr::GetAutoHelpId()
if( !nGID || nGID > 32767 )
return 0;
-
+
ULONG nHID = 0;
// GGGg gggg::gggg gggg::ggLL LLLl::llll llll
@@ -1846,7 +1847,7 @@ ULONG ResMgr::GetAutoHelpId()
return 0;
} // of switch
nHID |= nGID << 14;
-
+
return nHID;
}
@@ -1890,9 +1891,9 @@ SimpleResMgr::SimpleResMgr( const sal_Char* pPrefixName,
osl::Guard<osl::Mutex> aGuard( getResMgrMutex() );
if( ! aLocale.Language.getLength() )
- aLocale = ResMgrContainer::get().getDefLocale();
-
- m_pResImpl = ResMgrContainer::get().getResMgr( aPrefix, aLocale, true );
+ aLocale = ResMgrContainer::get().getDefLocale();
+
+ m_pResImpl = ResMgrContainer::get().getResMgr( aPrefix, aLocale, true );
DBG_ASSERT( m_pResImpl, "SimpleResMgr::SimpleResMgr : have no impl class !" );
}
@@ -1900,7 +1901,7 @@ SimpleResMgr::SimpleResMgr( const sal_Char* pPrefixName,
SimpleResMgr::SimpleResMgr( const ::rtl::OUString& _rPrefixName, ::com::sun::star::lang::Locale& _inout_Locale )
{
osl::Guard<osl::Mutex> aGuard( getResMgrMutex() );
- m_pResImpl = ResMgrContainer::get().getResMgr( _rPrefixName, _inout_Locale, true );
+ m_pResImpl = ResMgrContainer::get().getResMgr( _rPrefixName, _inout_Locale, true );
}
// -----------------------------------------------------------------------
diff --git a/vcl/source/app/svmain.cxx b/vcl/source/app/svmain.cxx
index 1c2af2d980..a6c26caabd 100644
--- a/vcl/source/app/svmain.cxx
+++ b/vcl/source/app/svmain.cxx
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -47,7 +47,7 @@
#include "svsys.h"
#include "vcl/salinst.hxx"
#include "vcl/salwtype.hxx"
-#include "vos/signal.hxx"
+#include "osl/signal.h"
#include "tools/tools.h"
#include "tools/debug.hxx"
#include "tools/unqid.hxx"
@@ -98,22 +98,14 @@ using namespace ::com::sun::star::lang;
// =======================================================================
-class ImplVCLExceptionHandler : public ::vos::OSignalHandler
+oslSignalAction SAL_CALL VCLExceptionSignal_impl( void* /*pData*/, oslSignalInfo* pInfo)
{
-public:
- virtual ::vos::OSignalHandler::TSignalAction SAL_CALL signal( ::vos::OSignalHandler::TSignalInfo* pInfo );
-};
-
-// -----------------------------------------------------------------------
-
-::vos::OSignalHandler::TSignalAction SAL_CALL ImplVCLExceptionHandler::signal( ::vos::OSignalHandler::TSignalInfo* pInfo )
-{
- static BOOL bIn = FALSE;
+ static bool bIn = false;
// Wenn wir nocheinmal abstuerzen, verabschieden wir uns gleich
if ( !bIn )
{
- USHORT nVCLException = 0;
+ sal_uInt16 nVCLException = 0;
// UAE
if ( (pInfo->Signal == osl_Signal_AccessViolation) ||
@@ -139,27 +131,28 @@ public:
if ( nVCLException )
{
- bIn = TRUE;
-
+ bIn = true;
+
::vos::OGuard aLock(&Application::GetSolarMutex());
-
+
// Timer nicht mehr anhalten, da ansonsten die UAE-Box
// auch nicht mehr gepaintet wird
ImplSVData* pSVData = ImplGetSVData();
if ( pSVData->mpApp )
{
- USHORT nOldMode = Application::GetSystemWindowMode();
+ sal_uInt16 nOldMode = Application::GetSystemWindowMode();
Application::SetSystemWindowMode( nOldMode & ~SYSTEMWINDOW_MODE_NOAUTOMODE );
pSVData->mpApp->Exception( nVCLException );
Application::SetSystemWindowMode( nOldMode );
}
- bIn = FALSE;
+ bIn = false;
- return vos::OSignalHandler::TAction_CallNextHandler;
+ return osl_Signal_ActCallNextHdl;
}
}
- return vos::OSignalHandler::TAction_CallNextHandler;
+ return osl_Signal_ActCallNextHdl;
+
}
// =======================================================================
@@ -184,10 +177,10 @@ BOOL ImplSVMain()
pSVData->mpApp->Main();
pSVData->maAppData.mbInAppMain = FALSE;
}
-
+
if( pSVData->mxDisplayConnection.is() )
{
- vcl::DisplayConnection* pConnection =
+ vcl::DisplayConnection* pConnection =
dynamic_cast<vcl::DisplayConnection*>(pSVData->mxDisplayConnection.get());
if( pConnection )
@@ -196,7 +189,7 @@ BOOL ImplSVMain()
}
// This is a hack to work around the problem of the asynchronous nature
- // of bridging accessibility through Java: on shutdown there might still
+ // of bridging accessibility through Java: on shutdown there might still
// be some events in the AWT EventQueue, which need the SolarMutex which
// - on the other hand - is destroyed in DeInitVCL(). So empty the queue
// here ..
@@ -228,7 +221,7 @@ BOOL SVMain()
// before SVInit is called
static Application * pOwnSvApp = NULL;
// Exception handler. pExceptionHandler != NULL => VCL already inited
-ImplVCLExceptionHandler * pExceptionHandler = NULL;
+oslSignalHandler pExceptionHandler = NULL;
class Application_Impl : public Application
{
@@ -272,7 +265,7 @@ BOOL InitVCL( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XM
if( pExceptionHandler != NULL )
return FALSE;
-
+
if( ! ImplGetSVData() )
ImplInitSVData();
@@ -332,7 +325,7 @@ BOOL InitVCL( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XM
pSVData->maGDIData.mpGrfConverter = new GraphicConverter;
// Exception-Handler setzen
- pExceptionHandler = new ImplVCLExceptionHandler();
+ pExceptionHandler = osl_addSignalHandler(VCLExceptionSignal_impl, NULL);
// Debug-Daten initialisieren
DBGGUI_INIT();
@@ -344,7 +337,7 @@ void DeInitVCL()
{
ImplSVData* pSVData = ImplGetSVData();
pSVData->mbDeInit = TRUE;
-
+
vcl::DeleteOnDeinitBase::ImplDeleteOnDeInit();
// give ime status a chance to destroy its own windows
@@ -377,7 +370,7 @@ void DeInitVCL()
ImplImageTreeSingletonRef()->shutDown();
- delete pExceptionHandler;
+ osl_removeSignalHandler( pExceptionHandler);
pExceptionHandler = NULL;
// Debug Daten zuruecksetzen
@@ -490,7 +483,7 @@ void DeInitVCL()
pSVData->maAppData.mpSettings->GetSysLocale().GetOptions().RemoveListener( pSVData->maAppData.mpCfgListener );
delete pSVData->maAppData.mpCfgListener;
}
-
+
delete pSVData->maAppData.mpSettings;
pSVData->maAppData.mpSettings = NULL;
}
diff --git a/vos/inc/vos/signal.hxx b/vos/inc/vos/signal.hxx
deleted file mode 100644
index 0f2b2be6e0..0000000000
--- a/vos/inc/vos/signal.hxx
+++ /dev/null
@@ -1,100 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org 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 version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-
-#ifndef _VOS_SIGNAL_HXX_
-#define _VOS_SIGNAL_HXX_
-
-# include <vos/types.hxx>
-# include <vos/object.hxx>
-# include <osl/signal.h>
-
-namespace vos
-{
-
-extern "C"
-typedef oslSignalAction SignalHandlerFunction_impl(void *, oslSignalInfo *);
-SignalHandlerFunction_impl signalHandlerFunction_impl;
-
-/** OSignalHandler is an objectoriented interface for signal handlers.
-
- @author Ralf Hofmann
- @version 1.0
-*/
-
-class OSignalHandler : public NAMESPACE_VOS(OObject)
-{
- VOS_DECLARE_CLASSINFO(VOS_NAMESPACE(OSignalHandler, vos));
-
-public:
-
- enum TSignal
- {
- TSignal_System = osl_Signal_System,
- TSignal_Terminate = osl_Signal_Terminate,
- TSignal_AccessViolation = osl_Signal_AccessViolation,
- TSignal_IntegerDivideByZero = osl_Signal_IntegerDivideByZero,
- TSignal_FloatDivideByZero = osl_Signal_FloatDivideByZero,
- TSignal_DebugBreak = osl_Signal_DebugBreak,
- TSignal_SignalUser = osl_Signal_User
- };
-
- enum TSignalAction
- {
- TAction_CallNextHandler = osl_Signal_ActCallNextHdl,
- TAction_Ignore = osl_Signal_ActIgnore,
- TAction_AbortApplication = osl_Signal_ActAbortApp,
- TAction_KillApplication = osl_Signal_ActKillApp
- };
-
- typedef oslSignalInfo TSignalInfo;
-
- /// Constructor
- OSignalHandler();
-
- /// Destructor kills thread if neccessary
- virtual ~OSignalHandler();
-
- static TSignalAction SAL_CALL raise(sal_Int32 Signal, void *pData = 0);
-
-protected:
-
- /// Working method which should be overridden.
- virtual TSignalAction SAL_CALL signal(TSignalInfo *pInfo) = 0;
-
-protected:
- oslSignalHandler m_hHandler;
-
- friend oslSignalAction signalHandlerFunction_impl(void *, oslSignalInfo *);
-};
-
-}
-
-#endif // _VOS_SIGNAL_HXX_
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/vos/source/makefile.mk b/vos/source/makefile.mk
index 5b9a8c7ad9..7afe987703 100644
--- a/vos/source/makefile.mk
+++ b/vos/source/makefile.mk
@@ -46,7 +46,6 @@ SLOFILES= $(SLO)$/conditn.obj \
$(SLO)$/module.obj \
$(SLO)$/timer.obj \
$(SLO)$/process.obj \
- $(SLO)$/signal.obj \
$(SLO)$/pipe.obj \
$(SLO)$/xception.obj
@@ -61,7 +60,6 @@ OBJFILES= $(OBJ)$/conditn.obj \
$(OBJ)$/module.obj \
$(OBJ)$/timer.obj \
$(OBJ)$/process.obj \
- $(OBJ)$/signal.obj \
$(OBJ)$/pipe.obj \
$(OBJ)$/xception.obj
diff --git a/vos/source/signal.cxx b/vos/source/signal.cxx
deleted file mode 100644
index 1bfb43821e..0000000000
--- a/vos/source/signal.cxx
+++ /dev/null
@@ -1,66 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org 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 version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-
-#include <osl/diagnose.h>
-#include <vos/object.hxx>
-#include <vos/signal.hxx>
-
-using namespace vos;
-
-oslSignalAction vos::signalHandlerFunction_impl(
- void * pthis, oslSignalInfo * pInfo)
-{
- NAMESPACE_VOS(OSignalHandler)* pThis= (NAMESPACE_VOS(OSignalHandler)*)pthis;
-
- return ((oslSignalAction)pThis->signal(pInfo));
-}
-
-/////////////////////////////////////////////////////////////////////////////
-// Thread class
-
-VOS_IMPLEMENT_CLASSINFO(VOS_CLASSNAME(OSignalHandler, vos),
- VOS_NAMESPACE(OSignalHandler, vos),
- VOS_NAMESPACE(OObject, vos), 0);
-
-OSignalHandler::OSignalHandler()
-{
- m_hHandler = osl_addSignalHandler(signalHandlerFunction_impl, this);
-}
-
-OSignalHandler::~OSignalHandler()
-{
- osl_removeSignalHandler(m_hHandler);
-}
-
-OSignalHandler::TSignalAction OSignalHandler::raise(sal_Int32 Signal, void *pData)
-{
- return (TSignalAction)osl_raiseSignal(Signal, pData);
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */