Lock a sequencer from virtual sequence

In reply to chr_sue:

According to the documentation for uvm_sequence_base for lock()

A lock request will be arbitrated the same as any other request. A lock is granted after all earlier requests are completed and no other locks or grabs are blocking this sequence.

As opposed to grab()

A grab request is put in front of the arbitration queue. It will be arbitrated before any other requests. A grab is granted when no other grabs or locks are blocking this sequence.