class_docstr: An atomic, thread-safe incrementing counter.
  
  Based on:
  https://gist.github.com/benhoyt/8c8a8d62debe8e5aa5340373f9c509c7
class_docstr_tok: ["An","atomic",",","thread-safe","incrementing","counter",".","Based","on",":","https",":","\/\/gist.github.com\/benhoyt\/8c8a8d62debe8e5aa5340373f9c509c7"]
docstr: Initialize a new atomic counter to 0.
docstr_tok: ["Initialize","a","new","atomic","counter","to","0","."]
code: def __init__(self):
      """Initialize a new atomic counter to 0."""
      self.value = 0
      self._lock = Lock()
  
file_path: avalanche/avalanche/benchmarks/utils/ffcv_support/ffcv_epoch_iterator.py
imports: from threading import Thread, Event, Lock
  from queue import Queue
  from typing import List, Sequence, TYPE_CHECKING
  from ffcv.traversal_order.quasi_random import QuasiRandom
  from ffcv.loader.epoch_iterator import EpochIterator, QUASIRANDOM_ERROR_MSG
  import torch
label_desc: Use image node_id 1 to create a new AtomicCounter object  with example: obj = AtomicCounter()