class_docstr: A synchronized shared counter.
  
  The locking done by multiprocessing.Value ensures that only a single
  process or thread may read or write the in-memory ctypes object. However,
  in order to do n += 1, Python performs a read followed by a write, so a
  second process may read the old value before the new one is written by the
  first process. The solution is to use a multiprocessing.Lock to guarantee
  the atomicity of the modifications to Value.
  
  Parameters
  ----------
  n : int
      The count to start at.
  
  References
  ----------
  .. [1] http://eli.thegreenplace.net/2012/01/04/shared-counter-with-pythons-multiprocessing/
class_docstr_tok: ["A","synchronized","shared","counter",".","The","locking","done","by","multiprocessing.Value","ensures","that","only","a","single","process","or","thread","may","read","or","write","the","in-memory","ctypes","object",".","However",",","in","order","to","do","n","+=","1",",","Python","performs","a","read","followed","by","a","write",",","so","a","second","process","may","read","the","old","value","before","the","new","one","is","written","by","the","first","process",".","The","solution","is","to","use","a","multiprocessing.Lock","to","guarantee","the","atomicity","of","the","modifications","to","Value",".","Parameters","--","--","--","--","--","n",":","int","The","count","to","start","at",".","References","--","--","--","--","--","..","[","1","]","http",":","\/\/eli.thegreenplace.net\/2012\/01\/04\/shared-counter-with-pythons-multiprocessing\/"]
docstr: The value of the counter. (int, read-only) 
docstr_tok: ["The","value","of","the","counter",".","(","int",",","read-only",")"]
code: def value(self) -> int:
      """The value of the counter. (int, read-only)"""
      return self.count.value
  
file_path: tensortrade/tensortrade/agents/parallel/parallel_queue.py
imports: from deprecated import deprecated
  import multiprocessing
  from multiprocessing.queues import Queue
label_desc: Use image node_id 3 for calling the SharedCounter obj's underlying member method code with example usage: obj.value() and returns: self