[tracker/checkpoint] tracker-store: Wait for checkpointing in TrackerStore.pause
- From: JÃrg Billeter <juergbi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/checkpoint] tracker-store: Wait for checkpointing in TrackerStore.pause
- Date: Mon, 27 Jun 2011 11:12:29 +0000 (UTC)
commit a91a3983f8b4612a8fdf56ae94d9512b9748a69a
Author: JÃrg Billeter <j bitron ch>
Date: Mon Jun 27 13:11:15 2011 +0200
tracker-store: Wait for checkpointing in TrackerStore.pause
src/tracker-store/tracker-store.vala | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/tracker-store/tracker-store.vala b/src/tracker-store/tracker-store.vala
index 85b6bf0..ec4b0e9 100644
--- a/src/tracker-store/tracker-store.vala
+++ b/src/tracker-store/tracker-store.vala
@@ -474,6 +474,16 @@ public class Tracker.Store {
active_callback = null;
}
+ if (AtomicInt.get (ref checkpointing) != 0) {
+ // this will wait for checkpointing to finish
+ checkpoint_pool = null;
+ try {
+ checkpoint_pool = new ThreadPool<bool> (checkpoint_dispatch_cb, 1, true);
+ } catch (Error e) {
+ warning (e.message);
+ }
+ }
+
if (active) {
sched ();
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]