parameters: (self)
docstring: Acquire a thread lock for serializing access to the underlying I/O.
docstring_summary: Acquire a thread lock for serializing access to the underlying I/O.
docstring_tokens: Acquire a thread lock for serializing access to the underlying I / O .
function: def createLock(self):
          """
          Acquire a thread lock for serializing access to the underlying I/O.
          """
          if thread:
              self.lock = threading.RLock()
          else:
              self.lock = None
function_tokens: def createLock ( self ) : if thread : self . lock = threading . RLock ( ) else : self . lock = None