summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-07-09 11:07:53 +0200
committerAndreas Kling <kling@serenityos.org>2021-07-09 11:15:50 +0200
commitce5d2b4f16aec72614ca4abec0dff7b6c757d2ac (patch)
treee9abe550c464f8c2c5892c9822fd8da8fc4bc0aa /Userland
parent1da06f9dfd8db7e69d16bd424f18ad7380201f53 (diff)
downloadserenity-ce5d2b4f16aec72614ca4abec0dff7b6c757d2ac.zip
LibThreading: Remove unused "Lockable" class
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibThreading/Lock.h29
1 files changed, 0 insertions, 29 deletions
diff --git a/Userland/Libraries/LibThreading/Lock.h b/Userland/Libraries/LibThreading/Lock.h
index d8522eb915..a2c26ce09d 100644
--- a/Userland/Libraries/LibThreading/Lock.h
+++ b/Userland/Libraries/LibThreading/Lock.h
@@ -61,33 +61,4 @@ inline void Lock::unlock()
pthread_mutex_unlock(&m_mutex);
}
-template<typename T>
-class Lockable {
-public:
- Lockable() { }
-
- template<typename... Args>
- Lockable(Args&&... args)
- : m_resource(forward(args)...)
- {
- }
-
- Lockable(T&& resource)
- : m_resource(move(resource))
- {
- }
- Lock& lock() { return m_lock; }
- T& resource() { return m_resource; }
-
- T lock_and_copy()
- {
- Locker locker(m_lock);
- return m_resource;
- }
-
-private:
- T m_resource;
- Lock m_lock;
-};
-
}