[gthumb] reset the async task state before executing
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gthumb] reset the async task state before executing
- Date: Thu, 26 Aug 2010 17:42:37 +0000 (UTC)
commit 9eabfc33fe37bbbffb5953529109f8fa47c73b1d
Author: Paolo Bacchilega <paobac src gnome org>
Date: Thu Aug 26 19:39:14 2010 +0200
reset the async task state before executing
[bug #627688]
gthumb/gth-async-task.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/gthumb/gth-async-task.c b/gthumb/gth-async-task.c
index ef75135..3c173f8 100644
--- a/gthumb/gth-async-task.c
+++ b/gthumb/gth-async-task.c
@@ -133,6 +133,11 @@ gth_async_task_exec (GthTask *task)
self = GTH_ASYNC_TASK (task);
+ g_mutex_lock (self->priv->data_mutex);
+ self->priv->terminated = FALSE;
+ self->priv->cancelled = FALSE;
+ g_mutex_unlock (self->priv->data_mutex);
+
if (self->priv->before_func != NULL)
self->priv->before_func (self);
g_thread_create (exec_task, self, FALSE, NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]