public void newOutput(object sender, Output_args args) { lock (mylock) { lastoutput = args.Copy(); } }
public void newOutput(object sender, Output_args args) { lock (outputs) { outputs.Enqueue(args.Copy()); } }