From 658af8525e916be4167b9a3cb98fffd15066a0c2 Mon Sep 17 00:00:00 2001 From: xiaoyifang Date: Sun, 10 Apr 2022 09:33:55 +0800 Subject: [PATCH] fix:QSemphaore changes --- dsl.cc | 4 ++-- mdx.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dsl.cc b/dsl.cc index f52e1c08..410b8a9d 100644 --- a/dsl.cc +++ b/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 ); diff --git a/mdx.cc b/mdx.cc index c60de683..c40663e5 100644 --- a/mdx.cc +++ b/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();