AWTEvent res = queue[next_out];
if (!tk.nativeQueueEmpty() && (curr - lastNativeQueueAccess > humanLatencyThreshold)) { tk.iterateNativeQueue(this, false); lastNativeQueueAccess = curr; }
  public synchronized AWTEvent getNextEvent()    throws InterruptedException  {		if (next != null)			return next.getNextEvent();		while (next_in == next_out)			wait();		AWTEvent res = queue[next_out];		if (++next_out == queue.length)			next_out = 0;		return res;	}