[gnome-builder] vala-pack: add helper to run command while context is locked
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] vala-pack: add helper to run command while context is locked
- Date: Sat, 11 Nov 2017 02:41:08 +0000 (UTC)
commit 9e1374ace54f9ff7370e3bc1bac344a2c7d5ac1c
Author: Christian Hergert <chergert redhat com>
Date: Fri Nov 10 18:39:56 2017 -0800
vala-pack: add helper to run command while context is locked
src/plugins/vala-pack/ide-vala-index.vala | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/vala-pack/ide-vala-index.vala b/src/plugins/vala-pack/ide-vala-index.vala
index c0bccd6..474b7ca 100644
--- a/src/plugins/vala-pack/ide-vala-index.vala
+++ b/src/plugins/vala-pack/ide-vala-index.vala
@@ -542,6 +542,13 @@ namespace Ide
return null;
}
+
+ public void do_locked (GLib.Func func)
+ {
+ lock (this.code_context) {
+ func (this);
+ }
+ }
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]