[gnome-builder] task: make comment more accurate
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] task: make comment more accurate
- Date: Wed, 21 Mar 2018 20:39:48 +0000 (UTC)
commit 3648323305418c89f8f1e6d1961f72e63524f12d
Author: Christian Hergert <chergert redhat com>
Date: Wed Mar 21 13:39:16 2018 -0700
task: make comment more accurate
src/libide/threading/ide-task.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/libide/threading/ide-task.c b/src/libide/threading/ide-task.c
index 730414f32..b6c192909 100644
--- a/src/libide/threading/ide-task.c
+++ b/src/libide/threading/ide-task.c
@@ -1011,9 +1011,9 @@ ide_task_return (IdeTask *self,
{
if (result->type == IDE_TASK_RESULT_CANCELLED)
{
- /* We handled the cancel signal but already raced to get a result
- * in the mean time. So we can just drop this result immediately
- * as it has no state ot propagate.
+ /* We already had a result, and now raced to be notified of
+ * cancellation. We can safely free this result even if we're
+ * currently in a worker thread.
*/
ide_task_result_free (result);
return;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]