Don't allocate watcher queue on the heap
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user