Commit 54519294 authored by Marcus Comstedt's avatar Marcus Comstedt

Thread.Queue: Fix broken fallback implementation of try_read()

parent 18ef00e4
......@@ -1291,6 +1291,7 @@ class Queue
mixed try_read()
if (w_ptr == r_ptr) return UNDEFINED;
mixed tmp=buffer[r_ptr];
buffer[r_ptr++] = 0; // Throw away any references.
return tmp;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment