mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-05 11:35:26 +00:00
Lock Core in CutterCore::loadScript() (#1581)
This commit is contained in:
parent
5390a7d173
commit
a6f4ac2dd3
@ -2647,6 +2647,7 @@ QString CutterCore::bytesToHexString(const QByteArray &bytes)
|
|||||||
|
|
||||||
void CutterCore::loadScript(const QString &scriptname)
|
void CutterCore::loadScript(const QString &scriptname)
|
||||||
{
|
{
|
||||||
|
CORE_LOCK();
|
||||||
r_core_task_sync_begin(core_);
|
r_core_task_sync_begin(core_);
|
||||||
r_core_cmd_file(core_, scriptname.toUtf8().constData());
|
r_core_cmd_file(core_, scriptname.toUtf8().constData());
|
||||||
r_core_task_sync_end(core_);
|
r_core_task_sync_end(core_);
|
||||||
|
Loading…
Reference in New Issue
Block a user