From 5efb4913491155a84895a480e871df04b174edfe Mon Sep 17 00:00:00 2001 From: Mahendra Date: Sat, 7 Apr 2018 18:42:21 +0530 Subject: [PATCH] add docstring for set_thread methrod in helper_msgcoding --- src/helper_threading.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/helper_threading.py b/src/helper_threading.py index 2f8d2921..102c2cc0 100644 --- a/src/helper_threading.py +++ b/src/helper_threading.py @@ -7,6 +7,7 @@ try: import prctl def set_thread_name(name): + """Set a name for the thread for python internal use.""" prctl.set_name(name) def _thread_name_hack(self): @@ -17,6 +18,7 @@ try: threading.Thread._Thread__bootstrap = _thread_name_hack except ImportError: def set_thread_name(name): + """Set the thread name for external use (visible from the OS).""" threading.current_thread().name = name