summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
-};
-
}