diff options
author | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-08-14 20:31:22 +0000 |
---|---|---|
committer | Ludovic Pouzenc <ludovic@pouzenc.fr> | 2011-08-14 20:31:22 +0000 |
commit | c908d810330edba56b476229aba081997f251da7 (patch) | |
tree | dd58223b2abbd4f0fb59374c675af471d1f9ca57 /inc | |
parent | 7f47315422f6846ea700fc7826f47b10dbfe086d (diff) | |
download | 2011-ddhardrescue-c908d810330edba56b476229aba081997f251da7.tar.gz 2011-ddhardrescue-c908d810330edba56b476229aba081997f251da7.tar.bz2 2011-ddhardrescue-c908d810330edba56b476229aba081997f251da7.zip |
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...)
git-svn-id: file:///var/svn/2011-ddhardrescue/trunk@18 d3078510-dda0-49f1-841c-895ef4b7ec81
Diffstat (limited to 'inc')
-rwxr-xr-x | inc/slices.h | 3 |
1 files changed, 3 insertions, 0 deletions
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); |