diff options
author | orivej <orivej@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:45:01 +0300 |
commit | 2d37894b1b037cf24231090eda8589bbb44fb6fc (patch) | |
tree | be835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h | |
parent | 718c552901d703c502ccbefdfc3c9028d608b947 (diff) | |
download | ydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz |
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h')
-rw-r--r-- | contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h | 114 |
1 files changed, 57 insertions, 57 deletions
diff --git a/contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h b/contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h index 20971b66e3..1f0c288ad5 100644 --- a/contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h +++ b/contrib/libs/poco/Foundation/include/Poco/SharedLibrary_UNIX.h @@ -1,57 +1,57 @@ -// -// SharedLibrary_UNIX.h -// -// Library: Foundation -// Package: SharedLibrary -// Module: SharedLibrary -// -// Definition of the SharedLibraryImpl class for UNIX (dlopen). -// -// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. -// and Contributors. -// -// SPDX-License-Identifier: BSL-1.0 -// - - -#ifndef Foundation_SharedLibrary_UNIX_INCLUDED -#define Foundation_SharedLibrary_UNIX_INCLUDED - - -#include "Poco/Foundation.h" -#include "Poco/Mutex.h" - - -namespace Poco { - - -class Foundation_API SharedLibraryImpl -{ -protected: - enum Flags - { - SHLIB_GLOBAL_IMPL = 1, - SHLIB_LOCAL_IMPL = 2 - }; - - SharedLibraryImpl(); - ~SharedLibraryImpl(); - void loadImpl(const std::string& path, int flags); - void unloadImpl(); - bool isLoadedImpl() const; - void* findSymbolImpl(const std::string& name); - const std::string& getPathImpl() const; - static std::string suffixImpl(); - static bool setSearchPathImpl(const std::string& path); - -private: - std::string _path; - void* _handle; - static FastMutex _mutex; -}; - - -} // namespace Poco - - -#endif // Foundation_SharedLibrary_UNIX_INCLUDED +// +// SharedLibrary_UNIX.h +// +// Library: Foundation +// Package: SharedLibrary +// Module: SharedLibrary +// +// Definition of the SharedLibraryImpl class for UNIX (dlopen). +// +// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH. +// and Contributors. +// +// SPDX-License-Identifier: BSL-1.0 +// + + +#ifndef Foundation_SharedLibrary_UNIX_INCLUDED +#define Foundation_SharedLibrary_UNIX_INCLUDED + + +#include "Poco/Foundation.h" +#include "Poco/Mutex.h" + + +namespace Poco { + + +class Foundation_API SharedLibraryImpl +{ +protected: + enum Flags + { + SHLIB_GLOBAL_IMPL = 1, + SHLIB_LOCAL_IMPL = 2 + }; + + SharedLibraryImpl(); + ~SharedLibraryImpl(); + void loadImpl(const std::string& path, int flags); + void unloadImpl(); + bool isLoadedImpl() const; + void* findSymbolImpl(const std::string& name); + const std::string& getPathImpl() const; + static std::string suffixImpl(); + static bool setSearchPathImpl(const std::string& path); + +private: + std::string _path; + void* _handle; + static FastMutex _mutex; +}; + + +} // namespace Poco + + +#endif // Foundation_SharedLibrary_UNIX_INCLUDED |