mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 00:14:06 +00:00
fix:QSemphaore changes
This commit is contained in:
parent
6712e6cf96
commit
658af8525e
4
dsl.cc
4
dsl.cc
|
@ -336,8 +336,8 @@ DslDictionary::~DslDictionary()
|
|||
Mutex::Lock _( deferredInitMutex );
|
||||
|
||||
// Wait for init runnable to complete if it was ever started
|
||||
if ( deferredInitRunnableStarted )
|
||||
deferredInitRunnableExited.acquire();
|
||||
// if ( deferredInitRunnableStarted )
|
||||
// deferredInitRunnableExited.acquire();
|
||||
|
||||
if ( dz )
|
||||
dict_data_close( dz );
|
||||
|
|
4
mdx.cc
4
mdx.cc
|
@ -399,8 +399,8 @@ MdxDictionary::~MdxDictionary()
|
|||
Mutex::Lock _( deferredInitMutex );
|
||||
|
||||
// Wait for init runnable to complete if it was ever started
|
||||
if ( deferredInitRunnableStarted )
|
||||
deferredInitRunnableExited.acquire();
|
||||
// if ( deferredInitRunnableStarted )
|
||||
// deferredInitRunnableExited.acquire();
|
||||
|
||||
dictFile.close();
|
||||
|
||||
|
|
Loading…
Reference in a new issue