original_docstring: Acquire a write lock. Blocks until there are no acquired read or
          write locks.
docstring: Acquire a write lock. Blocks until there are no acquired read or
  write locks.
docstring_tokens: Acquire a write lock . Blocks until there are no acquired read or write locks .
code: def acquire_write(self):
          """Acquire a write lock. Blocks until there are no acquired read or
          write locks."""
          self._read_ready.acquire()
          while self._readers > 0:
              self._read_ready.wait()
code_tokens: def acquire_write ( self ) : self . _read_ready . acquire ( ) while self . _readers > 0 : self . _read_ready . wait ( )
short_docstring: Acquire a write lock.
short_docstring_tokens: Acquire a write lock .
comment: """Acquire a write lock. Blocks until there are no acquired read or
          write locks."""