summaryrefslogtreecommitdiff
path: root/tools.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2017-06-11 09:01:47 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2017-06-11 09:01:47 +0200
commitc70d62aeb44360bc0e19241534dda113db190351 (patch)
treed496ee3dfe0baab98b580824c5390b7e2c03ed4a /tools.h
parenta4a3c637792976a33c8dba6855c8d902c9a2c3ba (diff)
downloadvdr-c70d62aeb44360bc0e19241534dda113db190351.tar.gz
vdr-c70d62aeb44360bc0e19241534dda113db190351.tar.bz2
Changed ##Lock to ##_Lock in the DEF_LIST_LOCK and USE_LIST_LOCK macros defined in tools.h
Diffstat (limited to 'tools.h')
-rw-r--r--tools.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools.h b/tools.h
index 6ff70318..cc4b2b66 100644
--- a/tools.h
+++ b/tools.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: tools.h 4.10 2017/05/22 20:21:08 kls Exp $
+ * $Id: tools.h 4.11 2017/06/11 08:52:06 kls Exp $
*/
#ifndef __TOOLS_H
@@ -614,19 +614,19 @@ public:
// is left:
#define DEF_LIST_LOCK2(Class, Name) \
-class c##Name##Lock { \
+class c##Name##_Lock { \
private: \
cStateKey stateKey; \
const c##Class *list; \
public: \
- c##Name##Lock(bool Write = false) \
+ c##Name##_Lock(bool Write = false) \
{ \
if (Write) \
list = c##Class::Get##Name##Write(stateKey); \
else \
list = c##Class::Get##Name##Read(stateKey); \
} \
- ~c##Name##Lock() { if (list) stateKey.Remove(); } \
+ ~c##Name##_Lock() { if (list) stateKey.Remove(); } \
const c##Class *Name(void) const { return list; } \
c##Class *Name(void) { return const_cast<c##Class *>(list); } \
}
@@ -636,13 +636,13 @@ public: \
// a suitable DEF_LIST_LOCK, and also a pointer to the provided list:
#define USE_LIST_LOCK_READ2(Class, Name) \
-c##Name##Lock Name##Lock(false); \
-const c##Class *Name __attribute__((unused)) = Name##Lock.Name();
+c##Name##_Lock Name##_Lock(false); \
+const c##Class *Name __attribute__((unused)) = Name##_Lock.Name();
#define USE_LIST_LOCK_READ(Class) USE_LIST_LOCK_READ2(Class, Class)
#define USE_LIST_LOCK_WRITE2(Class, Name) \
-c##Name##Lock Name##Lock(true); \
-c##Class *Name __attribute__((unused)) = Name##Lock.Name();
+c##Name##_Lock Name##_Lock(true); \
+c##Class *Name __attribute__((unused)) = Name##_Lock.Name();
#define USE_LIST_LOCK_WRITE(Class) USE_LIST_LOCK_WRITE2(Class, Class)
template<class T> class cVector {