How To Empty Queue In System Verilog Array Methods In C