Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Günther Wagner
gnome-builder
Commits
8a7877e1
Commit
8a7877e1
authored
Mar 20, 2018
by
Christian Hergert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
code-index: use indexer thread pool
parent
9f1ae272
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/plugins/code-index/ide-code-index-builder.c
src/plugins/code-index/ide-code-index-builder.c
+3
-0
No files found.
src/plugins/code-index/ide-code-index-builder.c
View file @
8a7877e1
...
...
@@ -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
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment