ThreadPool now working with no memory leaks

This commit is contained in:
Dynamitos committed 2022-02-14 16:29:26 +01:00
1 parent 6d48267ec2
commit 5268bb68e2
15 files changed
+287 -97

No files matched your search

+3 -3
View File
@@ -9,15 +9,15 @@ class Writable
public:
Writable()
{}
explicit Writable(T initialData)
Writable(T initialData)
: data(initialData)
, toBeWritten(initialData)
{}
Writable(const Writable& other) = delete;
Writable(Writable&& other) = default;
~Writable() = default;
Writable& operator=(const Writable& other) = delete;
Writable& operator=(Writable&& other) = default;
Writable& operator=(const Writable& other) const = delete;
Writable& operator=(Writable&& other) const = delete;
const Writable& operator=(const T& other) const
{
deferWrite(other);