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