Counter#

class montreal_forced_aligner.utils.Counter(init_val=0)[source]#

Bases: object

Multiprocessing counter object for keeping track of progress

Variables:
  • val (Value) – Integer to increment

  • lock (Lock) – Lock for process safety

increment(value=1)[source]#

Increment the counter

value()[source]#

Get the current value of the counter