forked from Dynamitos/Seele
ThreadPool now working with no memory leaks
This commit is contained in:
1 parent
6d48267ec2
commit
5268bb68e2
15 files changed
+287
-97
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user