Don't allocate watcher queue on the heap

This commit is contained in:
2016-12-25 00:54:05 +01:00
parent c966b42ac3
commit 0156c5a883
3 changed files with 9 additions and 10 deletions

View File

@ -90,7 +90,7 @@ struct ReadBuffer(T = ubyte)
in size_t minAvailable = 1024,
shared Allocator allocator = defaultAllocator) @trusted
{
this(allocator_);
this(allocator);
this.minAvailable = minAvailable;
this.blockSize = size;
buffer_ = cast(T[]) allocator_.allocate(size * T.sizeof);