<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def update(self, n=1):
 """Increment current value."""

    with self._lock:
      self._pbar.update(n)
      self.refresh()