summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-07-20 21:59:22 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-07-21 09:29:09 +0100
commitcba97d1d22d8cd24ab7fd762832ca42d17b330a7 (patch)
treed8ac093d5bb7837f91fb9a57aa65d5f3fe065d13 /vcl
parenta035737e46ec58ffbb11f95780e1573b40fc746e (diff)
callcatcher: unused ThreadExecutor
Diffstat (limited to 'vcl')
-rw-r--r--vcl/inc/vcl/threadex.hxx18
-rw-r--r--vcl/source/helper/threadex.cxx40
2 files changed, 0 insertions, 58 deletions
diff --git a/vcl/inc/vcl/threadex.hxx b/vcl/inc/vcl/threadex.hxx
index 429b43e6ac7c..c5333d847fa1 100644
--- a/vcl/inc/vcl/threadex.hxx
+++ b/vcl/inc/vcl/threadex.hxx
@@ -39,24 +39,6 @@
namespace vcl
{
- class VCL_DLLPUBLIC ThreadExecutor
- {
- oslThread m_aThread;
- oslCondition m_aFinish;
- long m_nReturn;
-
- #ifdef THREADEX_IMPLEMENTATION
- public:
- SAL_DLLPRIVATE static void SAL_CALL worker( void* );
- #endif
- public:
- ThreadExecutor();
- virtual ~ThreadExecutor();
-
- virtual long doIt() = 0;
- long execute();
- };
-
class VCL_DLLPUBLIC SolarThreadExecutor
{
oslCondition m_aStart;
diff --git a/vcl/source/helper/threadex.cxx b/vcl/source/helper/threadex.cxx
index ad351410e2c2..f0db5e3a372f 100644
--- a/vcl/source/helper/threadex.cxx
+++ b/vcl/source/helper/threadex.cxx
@@ -35,46 +35,6 @@
using namespace vcl;
-ThreadExecutor::ThreadExecutor()
-{
- m_aFinish = osl_createCondition();
- m_aThread = NULL;
-}
-
-ThreadExecutor::~ThreadExecutor()
-{
- osl_destroyCondition( m_aFinish );
- if( m_aThread )
- osl_destroyThread( m_aThread );
-}
-
-extern "C"
-{
- static void call_worker( void* pInstance )
- {
- ThreadExecutor::worker( pInstance );
- }
-}
-
-void ThreadExecutor::worker( void* pInstance )
-{
- ThreadExecutor* pThis = ((ThreadExecutor*)pInstance);
- pThis->m_nReturn = pThis->doIt();
- osl_setCondition( pThis->m_aFinish );
-}
-
-long ThreadExecutor::execute()
-{
- osl_resetCondition( m_aFinish );
- if( m_aThread )
- osl_destroyThread( m_aThread ), m_aThread = NULL;
- m_aThread = osl_createThread( call_worker, this );
- while( ! osl_checkCondition( m_aFinish ) )
- Application::Reschedule();
- return m_nReturn;
-}
-
-
SolarThreadExecutor::SolarThreadExecutor()
:m_nReturn( 0 )
,m_bTimeout( false )