|
|
|
@ -32,7 +32,7 @@ using namespace KRES;
|
|
|
|
|
class Resource::ResourcePrivate
|
|
|
|
|
{
|
|
|
|
|
public:
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
#ifdef TQT_THREAD_SUPPORT
|
|
|
|
|
TQMutex mMutex;
|
|
|
|
|
#endif
|
|
|
|
|
int mOpenCount;
|
|
|
|
@ -85,7 +85,7 @@ void Resource::writeConfig( TDEConfig* config )
|
|
|
|
|
bool Resource::open()
|
|
|
|
|
{
|
|
|
|
|
d->mIsOpen = true;
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
#ifdef TQT_THREAD_SUPPORT
|
|
|
|
|
TQMutexLocker guard( &(d->mMutex) );
|
|
|
|
|
#endif
|
|
|
|
|
if ( !d->mOpenCount ) {
|
|
|
|
@ -98,7 +98,7 @@ bool Resource::open()
|
|
|
|
|
|
|
|
|
|
void Resource::close()
|
|
|
|
|
{
|
|
|
|
|
#ifdef QT_THREAD_SUPPORT
|
|
|
|
|
#ifdef TQT_THREAD_SUPPORT
|
|
|
|
|
TQMutexLocker guard( &(d->mMutex) );
|
|
|
|
|
#endif
|
|
|
|
|
if ( !d->mOpenCount ) {
|
|
|
|
|