From 1f9832b44990621e8ad2ec493d3f1b15132b19cc Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 4 Mar 2018 14:15:07 +0100 Subject: Assigning events to timers no longer triggers sending a POLL to all peer VDRs --- tools.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools.h') diff --git a/tools.h b/tools.h index d65847dc..614130d0 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.15 2018/02/28 10:13:40 kls Exp $ + * $Id: tools.h 4.16 2018/03/04 14:06:36 kls Exp $ */ #ifndef __TOOLS_H @@ -559,6 +559,11 @@ public: ///< Contains() function to check whether an object you are holding a pointer ///< to is still in the list. Note that the garbage collector is purged when ///< the usual housekeeping is done. + void SetSyncStateKey(cStateKey &StateKey) { stateLock.SetSyncStateKey(StateKey); } + ///< When making changes to this list (while holding a write lock) that shall + ///< not affect some other code that reacts to such changes, this function can + ///< be called with the StateKey used by that other code. + ///< See cStateLock::SetSyncStateKey() for details. void SetUseGarbageCollector(void) { useGarbageCollector = true; } void SetExplicitModify(void); ///< If you have obtained a write lock on this list, and you don't want it to -- cgit v1.2.3