]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
timeshift: fix atomic add problems on i386
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 Jan 2013 11:52:18 +0000 (11:52 +0000)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 31 Jan 2013 12:16:01 +0000 (12:16 +0000)
src/timeshift.c
src/timeshift.h
src/timeshift/timeshift_filemgr.c

index 2ecc39b4b636b6cb25251b9a15c2d17fdc528fd6..de3766e938a5ea9e7a7434c9e68bbc21fa14cf35 100644 (file)
@@ -41,7 +41,7 @@ char     *timeshift_path;
 int       timeshift_unlimited_period;
 uint32_t  timeshift_max_period;
 int       timeshift_unlimited_size;
-size_t    timeshift_max_size;
+uint64_t  timeshift_max_size;
 
 /*
  * Intialise global file manager
index 3c6fc0abf0171ba8a6bc2d5d090f66582b1b46bd..db1736256ec1669d7fab13095af1446e2e550d39 100644 (file)
@@ -25,10 +25,8 @@ extern char     *timeshift_path;
 extern int       timeshift_unlimited_period;
 extern uint32_t  timeshift_max_period;
 extern int       timeshift_unlimited_size;
-extern size_t    timeshift_max_size;
-
-extern size_t          timeshift_total_size;
-extern pthread_mutex_t timeshift_size_lock;
+extern uint64_t  timeshift_max_size;
+extern uint64_t  timeshift_total_size;
 
 typedef struct timeshift_status
 {
index 64f724bce58e1fa95ee8341f344a10f7ac903566..185d80a5fea90b6f1d57bdc1df29ed6c24fb9ca1 100644 (file)
@@ -39,7 +39,7 @@ static pthread_t             timeshift_reaper_thread;
 static pthread_mutex_t       timeshift_reaper_lock;
 static pthread_cond_t        timeshift_reaper_cond;
 
-size_t                       timeshift_total_size;
+uint64_t                     timeshift_total_size;
 
 /* **************************************************************************
  * File reaper thread