aboutsummaryrefslogtreecommitdiff
path: root/src/zencore/thread.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2023-05-05 11:09:45 +0200
committerGitHub <[email protected]>2023-05-05 11:09:45 +0200
commit5fee41301ff4488503e64f8d79c1a07508dd27be (patch)
tree0fffdaa8993c78b518118dfa2a65ea43e90487f3 /src/zencore/thread.cpp
parentUpdate README.md (diff)
downloadzen-5fee41301ff4488503e64f8d79c1a07508dd27be.tar.xz
zen-5fee41301ff4488503e64f8d79c1a07508dd27be.zip
247 complete httpclient implementation (#269)
* implemented HttpClient connection pooling * implemented missing verbs * added response helpers (CbObject/CbPackage/text) * added RwLock::WithSharedLock and RwLock::WithExclusiveLock * added some noexcept annotations on RwLock * removed CPR dependency in httpclient.h
Diffstat (limited to 'src/zencore/thread.cpp')
-rw-r--r--src/zencore/thread.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/zencore/thread.cpp b/src/zencore/thread.cpp
index 1597a7dd9..86609c210 100644
--- a/src/zencore/thread.cpp
+++ b/src/zencore/thread.cpp
@@ -121,25 +121,25 @@ SetCurrentThreadName([[maybe_unused]] std::string_view ThreadName)
} // namespace zen
void
-RwLock::AcquireShared()
+RwLock::AcquireShared() noexcept
{
m_Mutex.lock_shared();
}
void
-RwLock::ReleaseShared()
+RwLock::ReleaseShared() noexcept
{
m_Mutex.unlock_shared();
}
void
-RwLock::AcquireExclusive()
+RwLock::AcquireExclusive() noexcept
{
m_Mutex.lock();
}
void
-RwLock::ReleaseExclusive()
+RwLock::ReleaseExclusive() noexcept
{
m_Mutex.unlock();
}