[gnome-builder] code-index: use indexer thread pool
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] code-index: use indexer thread pool
- Date: Wed, 21 Mar 2018 06:50:04 +0000 (UTC)
commit 8a7877e18b515f356ccf70fff7c5a0f491c1a2ca
Author: Christian Hergert <chergert redhat com>
Date: Tue Mar 20 23:49:53 2018 -0700
code-index: use indexer thread pool
src/plugins/code-index/ide-code-index-builder.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/src/plugins/code-index/ide-code-index-builder.c b/src/plugins/code-index/ide-code-index-builder.c
index f3354e193..19e2d87b3 100644
--- a/src/plugins/code-index/ide-code-index-builder.c
+++ b/src/plugins/code-index/ide-code-index-builder.c
@@ -1001,6 +1001,7 @@ add_entries_to_index_async (IdeCodeIndexBuilder *self,
task = ide_task_new (self, cancellable, callback, user_data);
ide_task_set_source_tag (task, add_entries_to_index_async);
ide_task_set_priority (task, G_PRIORITY_LOW);
+ ide_task_set_kind (task, IDE_THREAD_POOL_INDEXER);
if (ide_task_return_error_if_cancelled (task))
return;
@@ -1148,6 +1149,7 @@ index_directory_async (IdeCodeIndexBuilder *self,
task = ide_task_new (self, cancellable, callback, user_data);
ide_task_set_source_tag (task, index_directory_async);
ide_task_set_priority (task, G_PRIORITY_LOW);
+ ide_task_set_kind (task, IDE_THREAD_POOL_INDEXER);
if (ide_task_return_error_if_cancelled (task))
return;
@@ -1413,6 +1415,7 @@ ide_code_index_builder_build_async (IdeCodeIndexBuilder *self,
task = ide_task_new (self, cancellable, callback, user_data);
ide_task_set_source_tag (task, ide_code_index_builder_build_async);
ide_task_set_priority (task, G_PRIORITY_LOW);
+ ide_task_set_kind (task, IDE_THREAD_POOL_INDEXER);
bd = g_slice_new0 (BuildData);
bd->magic = BUILD_DATA_MAGIC;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]