From 3cd5294d8a337ee5cd2ec894c9fbe04ad3a7690d Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Tue, 1 Sep 2015 11:14:27 +0200 Subject: Implemented strict locking of global lists --- config.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config.h') diff --git a/config.h b/config.h index 23c601b4..2978d7d6 100644 --- a/config.h +++ b/config.h @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: config.h 4.2 2015/04/18 13:13:15 kls Exp $ + * $Id: config.h 4.3 2015/08/09 09:17:46 kls Exp $ */ #ifndef __CONFIG_H @@ -110,7 +110,7 @@ private: cList::Clear(); } public: - cConfig(void) { fileName = NULL; } + cConfig(const char *NeedsLocking = NULL): cList(NeedsLocking) { fileName = NULL; } virtual ~cConfig() { free(fileName); } const char *FileName(void) { return fileName; } bool Load(const char *FileName = NULL, bool AllowComments = false, bool MustExist = false) @@ -160,7 +160,7 @@ public: fprintf(stderr, "vdr: error while reading '%s'\n", fileName); return result; } - bool Save(void) + bool Save(void) const { bool result = true; T *l = (T *)this->First(); -- cgit v1.2.3