.oO SearXNG Developer Documentation Oo.
Loading...
Searching...
No Matches
searx.unixthreadname Namespace Reference

Functions

 new_thread_init (self, *args, **kwargs)
 

Variables

 old_thread_init = threading.Thread.__init__
 
 __init__
 
 _name
 

Detailed Description

if setproctitle is installed.
set Unix thread name with the Python thread name

Function Documentation

◆ new_thread_init()

searx.unixthreadname.new_thread_init ( self,
* args,
** kwargs )

Definition at line 16 of file unixthreadname.py.

16 def new_thread_init(self, *args, **kwargs):
17 # pylint: disable=protected-access, disable=c-extension-no-member
18 old_thread_init(self, *args, **kwargs)
19 setproctitle.setthreadtitle(self._name)
20

References searx.unixthreadname.old_thread_init.

Variable Documentation

◆ __init__

searx.unixthreadname.__init__
private

Definition at line 21 of file unixthreadname.py.

◆ _name

searx.unixthreadname._name
protected

Definition at line 19 of file unixthreadname.py.

◆ old_thread_init

searx.unixthreadname.old_thread_init = threading.Thread.__init__

Definition at line 14 of file unixthreadname.py.

Referenced by searx.unixthreadname.new_thread_init().