aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/poco/Foundation/src/SharedMemory.cpp
diff options
context:
space:
mode:
authororivej <orivej@yandex-team.ru>2022-02-10 16:45:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:45:01 +0300
commit2d37894b1b037cf24231090eda8589bbb44fb6fc (patch)
treebe835aa92c6248212e705f25388ebafcf84bc7a1 /contrib/libs/poco/Foundation/src/SharedMemory.cpp
parent718c552901d703c502ccbefdfc3c9028d608b947 (diff)
downloadydb-2d37894b1b037cf24231090eda8589bbb44fb6fc.tar.gz
Restoring authorship annotation for <orivej@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/poco/Foundation/src/SharedMemory.cpp')
-rw-r--r--contrib/libs/poco/Foundation/src/SharedMemory.cpp180
1 files changed, 90 insertions, 90 deletions
diff --git a/contrib/libs/poco/Foundation/src/SharedMemory.cpp b/contrib/libs/poco/Foundation/src/SharedMemory.cpp
index 74a2a0d970..da43a421c0 100644
--- a/contrib/libs/poco/Foundation/src/SharedMemory.cpp
+++ b/contrib/libs/poco/Foundation/src/SharedMemory.cpp
@@ -1,90 +1,90 @@
-//
-// SharedMemory.cpp
-//
-// Library: Foundation
-// Package: Processes
-// Module: SharedMemory
-//
-// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
-// and Contributors.
-//
-// SPDX-License-Identifier: BSL-1.0
-//
-
-
-#include "Poco/SharedMemory.h"
-#include "Poco/Exception.h"
-#if defined(POCO_NO_SHAREDMEMORY)
-#include "SharedMemory_DUMMY.cpp"
-#elif defined(POCO_OS_FAMILY_WINDOWS)
-#include "SharedMemory_WIN32.cpp"
-#elif defined(POCO_OS_FAMILY_UNIX)
-#include "SharedMemory_POSIX.cpp"
-#else
-#include "SharedMemory_DUMMY.cpp"
-#endif
-
-
-namespace Poco {
-
-
-SharedMemory::SharedMemory():
- _pImpl(0)
-{
-}
-
-
-SharedMemory::SharedMemory(const std::string& name, std::size_t size, AccessMode mode, const void* addrHint, bool server):
- _pImpl(new SharedMemoryImpl(name, size, mode, addrHint, server))
-{
-}
-
-
-SharedMemory::SharedMemory(const Poco::File& file, AccessMode mode, const void* addrHint):
- _pImpl(new SharedMemoryImpl(file, mode, addrHint))
-{
-}
-
-
-SharedMemory::SharedMemory(const SharedMemory& other):
- _pImpl(other._pImpl)
-{
- if (_pImpl)
- _pImpl->duplicate();
-}
-
-
-SharedMemory::~SharedMemory()
-{
- if (_pImpl)
- _pImpl->release();
-}
-
-
-SharedMemory& SharedMemory::operator = (const SharedMemory& other)
-{
- SharedMemory tmp(other);
- swap(tmp);
- return *this;
-}
-
-
-char* SharedMemory::begin() const
-{
- if (_pImpl)
- return _pImpl->begin();
- else
- return 0;
-}
-
-
-char* SharedMemory::end() const
-{
- if (_pImpl)
- return _pImpl->end();
- else
- return 0;
-}
-
-
-} // namespace Poco
+//
+// SharedMemory.cpp
+//
+// Library: Foundation
+// Package: Processes
+// Module: SharedMemory
+//
+// Copyright (c) 2007, Applied Informatics Software Engineering GmbH.
+// and Contributors.
+//
+// SPDX-License-Identifier: BSL-1.0
+//
+
+
+#include "Poco/SharedMemory.h"
+#include "Poco/Exception.h"
+#if defined(POCO_NO_SHAREDMEMORY)
+#include "SharedMemory_DUMMY.cpp"
+#elif defined(POCO_OS_FAMILY_WINDOWS)
+#include "SharedMemory_WIN32.cpp"
+#elif defined(POCO_OS_FAMILY_UNIX)
+#include "SharedMemory_POSIX.cpp"
+#else
+#include "SharedMemory_DUMMY.cpp"
+#endif
+
+
+namespace Poco {
+
+
+SharedMemory::SharedMemory():
+ _pImpl(0)
+{
+}
+
+
+SharedMemory::SharedMemory(const std::string& name, std::size_t size, AccessMode mode, const void* addrHint, bool server):
+ _pImpl(new SharedMemoryImpl(name, size, mode, addrHint, server))
+{
+}
+
+
+SharedMemory::SharedMemory(const Poco::File& file, AccessMode mode, const void* addrHint):
+ _pImpl(new SharedMemoryImpl(file, mode, addrHint))
+{
+}
+
+
+SharedMemory::SharedMemory(const SharedMemory& other):
+ _pImpl(other._pImpl)
+{
+ if (_pImpl)
+ _pImpl->duplicate();
+}
+
+
+SharedMemory::~SharedMemory()
+{
+ if (_pImpl)
+ _pImpl->release();
+}
+
+
+SharedMemory& SharedMemory::operator = (const SharedMemory& other)
+{
+ SharedMemory tmp(other);
+ swap(tmp);
+ return *this;
+}
+
+
+char* SharedMemory::begin() const
+{
+ if (_pImpl)
+ return _pImpl->begin();
+ else
+ return 0;
+}
+
+
+char* SharedMemory::end() const
+{
+ if (_pImpl)
+ return _pImpl->end();
+ else
+ return 0;
+}
+
+
+} // namespace Poco