def _lock_and_call(self, method, *args):
    self._lock.acquire()
    try:
      return method(*args)
    finally:
      self._lock.release()
Calls 'method' while holding the buffer lock.
dataset/ETHPy150Open AppScale/appscale/AppServer/google/appengine/api/logservice/logservice.py/LogsBuffer._lock_and_call