summaryrefslogtreecommitdiff
path: root/src/gui/dialogs/export_disass.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2020-09-21 22:23:47 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2020-09-21 22:23:47 (GMT)
commit76fb13178cf6be94b8e01675b37f7cb1b92f7709 (patch)
treea6e6bbc6dde169add608097ceb5658fcb904bd08 /src/gui/dialogs/export_disass.c
parentdfe76faf21e254c02c86a1b0b1f8ca8fc07fe027 (diff)
Defined lock mechanism for buffer caches.
Diffstat (limited to 'src/gui/dialogs/export_disass.c')
-rw-r--r--src/gui/dialogs/export_disass.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/dialogs/export_disass.c b/src/gui/dialogs/export_disass.c
index 84ccc0a..12fc51f 100644
--- a/src/gui/dialogs/export_disass.c
+++ b/src/gui/dialogs/export_disass.c
@@ -389,7 +389,7 @@ static void start_binary_export(GBufferCache *cache, buffer_export_context *temp
queue = get_work_queue();
- g_buffer_cache_lock(cache);
+ g_buffer_cache_rlock(cache);
count = g_buffer_cache_count_lines(cache);
info->msg = gtk_status_stack_add_activity(get_global_status(), _("Exporting binary content..."), count);
@@ -463,7 +463,7 @@ static void on_binary_export_completed(GSeqWork *work, export_info_t *info)
log_simple_message(LMT_INFO, "Binary content exported!");
- g_buffer_cache_unlock(info->cache);
+ g_buffer_cache_runlock(info->cache);
g_object_unref(G_OBJECT(info->cache));
g_object_unref(G_OBJECT(info->options));