mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-24 04:24:09 +00:00
7859daaff6
which can provide results asyncronously, be discarded prematurely etc. This work touches just about every piece of exiting code. + On top of the new interface, MediaWiki (Wikipedia) support was added. * Some other small fixes might went along.
15 lines
268 B
C++
15 lines
268 B
C++
/* This file is (c) 2008-2009 Konstantin Isakov <ikm@users.berlios.de>
|
|
* Part of GoldenDict. Licensed under GPLv3 or later, see the LICENSE file */
|
|
|
|
#include "mutex.hh"
|
|
|
|
Mutex::Lock::Lock( Mutex & m_ ): m( m_ )
|
|
{
|
|
m.lock();
|
|
}
|
|
|
|
Mutex::Lock::~Lock()
|
|
{
|
|
m.unlock();
|
|
}
|