diff --git a/src/catalogresolverthread.cpp b/src/catalogresolverthread.cpp deleted file mode 100644 index 0e11e34..0000000 --- a/src/catalogresolverthread.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "wx/wx.h" -#include "catalogresolverthread.h" -#include "wraplibxml.h" -#include - -wxCriticalSection catalogResolverCriticalSection; - -CatalogResolverThread::CatalogResolverThread ( - std::string *publicId, - std::string *systemId, - bool *finished, - const std::string& catalogPath ) : wxThread()//( wxTHREAD_JOINABLE ) -{ - myPublicIdPtr = publicId; - mySystemIdPtr = systemId; - myFinishedPtr = finished; - myCatalogPath = catalogPath; - - *myFinishedPtr = false; -} - -void *CatalogResolverThread::Entry() -{ - { - wxCriticalSectionLocker locker ( catalogResolverCriticalSection ); - - std::auto_ptr libxml ( new WrapLibxml ( false ) ); - *mySystemIdPtr = libxml->lookupPublicId ( *myPublicIdPtr ); - } - Exit(); - return NULL; -} - -void CatalogResolverThread::OnExit() -{ - { - wxCriticalSectionLocker locker ( catalogResolverCriticalSection ); - *myFinishedPtr = true; - } -} diff --git a/src/catalogresolverthread.h b/src/catalogresolverthread.h deleted file mode 100644 index 1b1a8f8..0000000 --- a/src/catalogresolverthread.h +++ /dev/null @@ -1,20 +0,0 @@ -#ifndef CATALOG_RESOLVER_THREAD_H -#define CATALOG_RESOLVER_THREAD_H - -#include -#include -#include - -class CatalogResolverThread : public wxThread -{ -public: - CatalogResolverThread ( std::string *publicId, std::string *systemId, bool *finished, const std::string& catalogPath ); - virtual void *Entry(); - virtual void OnExit(); -private: - std::string *myPublicIdPtr, *mySystemIdPtr; - std::string myCatalogPath; - bool *myFinishedPtr; -}; - -#endif