Sha256: 88776552275bc118f5f9bb71e469df5d3102f220b8050b95a47995a2f17c98be

Contents?: true

Size: 1.34 KB

Versions: 13

Compression:

Stored size: 1.34 KB

Contents

// 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_


Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dlib-1.2.2 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.2.1 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.2.0 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.5 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.4 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.3 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.2 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.1 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.1.0 ext/dlib-19.4/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.0.3 ext/dlib-18.13/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.0.2 ext/dlib-18.13/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.0.1 ext/dlib-18.13/dlib/config_reader/config_reader_thread_safe_abstract.h
dlib-1.0.0 ext/dlib-18.13/dlib/config_reader/config_reader_thread_safe_abstract.h