From c908d810330edba56b476229aba081997f251da7 Mon Sep 17 00:00:00 2001
From: Ludovic Pouzenc <ludovic@pouzenc.fr>
Date: Sun, 14 Aug 2011 20:31:22 +0000
Subject: Bug hunting : la visualisation marche dans la fenêtre ncurses. Avec
 un mutex et la fin de l'algo de dump, ça marche mieux qu'avant (segfaults...)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@18 d3078510-dda0-49f1-841c-895ef4b7ec81
---
 inc/slices.h | 3 +++
 1 file changed, 3 insertions(+)

(limited to 'inc/slices.h')

diff --git a/inc/slices.h b/inc/slices.h
index 78fb4c7..1ed7775 100755
--- a/inc/slices.h
+++ b/inc/slices.h
@@ -3,6 +3,7 @@
 
 #include <stdint.h>
 #include <stdlib.h>
+#include <pthread.h>
 
 /* IMPORTANT NOTES
 Slice are inclusive intervals. Let say sliceNew(1,2,S_UNKNOWN,NULL) return a [1;2] interval,
@@ -21,6 +22,8 @@ typedef struct _slice {
 typedef struct {
 	int count;
 	slice_t *first, *last;
+	address_t min, max;
+	pthread_mutex_t writeOrConsistentReadMutex;
 } slices_t;
 
 slice_t *sliceNew(address_t begin, address_t end, sliceStatus_t status, slice_t *next);
-- 
cgit v1.2.3