diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-18 13:10:52 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-12-18 13:10:52 +0100 |
commit | 587ea30ab496fa594ac5172d519c29f48d4becb5 (patch) | |
tree | 0d61ef0554f7a2750c1c1188bbd6ae920d8c7c3c /recording.c | |
parent | 7a0af2292ca13b3b79951e3b21a1fdeac7e75c6a (diff) | |
download | vdr-587ea30ab496fa594ac5172d519c29f48d4becb5.tar.gz vdr-587ea30ab496fa594ac5172d519c29f48d4becb5.tar.bz2 |
Added a mutex to AssertFreeDiskSpace() to make sure calls from foreground and background threads won't interfere
Diffstat (limited to 'recording.c')
-rw-r--r-- | recording.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/recording.c b/recording.c index 61098095..5cf769f4 100644 --- a/recording.c +++ b/recording.c @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: recording.c 1.127 2005/12/18 12:37:10 kls Exp $ + * $Id: recording.c 1.128 2005/12/18 13:09:47 kls Exp $ */ #include "recording.h" @@ -84,6 +84,8 @@ void RemoveDeletedRecordings(void) void AssertFreeDiskSpace(int Priority) { + static cMutex Mutex; + cMutexLock MutexLock(&Mutex); // With every call to this function we try to actually remove // a file, or mark a file for removal ("delete" it), so that // it will get removed during the next call. |