diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-03-21 17:19:04 +0000 |
commit | 310edf444908b09ea6d00c03baceb7925f3bb7a2 (patch) | |
tree | 7064577c7fa7a851e2e930beb606ea8237b0bbd2 /ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h | |
parent | Releasing debian version 1.44.3-2. (diff) | |
download | netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.tar.xz netdata-310edf444908b09ea6d00c03baceb7925f3bb7a2.zip |
Merging upstream version 1.45.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h')
-rw-r--r-- | ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h | 45 |
1 files changed, 0 insertions, 45 deletions
diff --git a/ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h b/ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h deleted file mode 100644 index 25bcbae4a..000000000 --- a/ml/dlib/dlib/config_reader/config_reader_thread_safe_abstract.h +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (C) 2007 Davis E. King (davis@dlib.net) -// License: Boost Software License See LICENSE.txt for the full license. -#undef DLIB_CONFIG_READER_THREAD_SAFe_ABSTRACT_ -#ifdef DLIB_CONFIG_READER_THREAD_SAFe_ABSTRACT_ - -#include <string> -#include <iosfwd> -#include "config_reader_kernel_abstract.h" -#include "../threads/threads_kernel_abstract.h" - -namespace dlib -{ - - class config_reader_thread_safe - { - - /*! - WHAT THIS EXTENSION DOES FOR config_reader - This object extends a normal config_reader by simply wrapping all - its member functions inside mutex locks to make it safe to use - in a threaded program. - - So this object provides an interface identical to the one defined - in the config_reader/config_reader_kernel_abstract.h file except that - the rmutex returned by get_mutex() is always locked when this - object's member functions are called. - !*/ - - public: - - const rmutex& get_mutex ( - ) const; - /*! - ensures - - returns the rmutex used to make this object thread safe. i.e. returns - the rmutex that is locked when this object's functions are called. - !*/ - - }; - -} - -#endif // DLIB_CONFIG_READER_THREAD_SAFe_ABSTRACT_ - - |