def is_locked_by_current_thread(self):
return self._encode_invoke(lock_is_locked_by_current_thread_codec,<EOL>thread_id=thread_id())<EOL>
Returns whether this lock is locked by current thread or not.

:return: (bool), ``true`` if this lock is locked by current thread, ``false`` otherwise.