Commit 18ef00e4 authored by Marcus Comstedt's avatar Marcus Comstedt

Thread.Queue: Provide fallback implementation of peek_array()

parent 51747752
......@@ -1326,6 +1326,11 @@ class Queue
return ret;
}
array peek_array()
{
return buffer[r_ptr..w_ptr-1];
}
int write(mixed value)
{
if(w_ptr >= sizeof(buffer))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment