sonar/testbench.py
def add_thread(self, thread=None):
        """
        Adds a thread to the TestVector. If a thread is provided as an argument,
        it's added to the TestVector. Otherwise, an empty one is created, added
        and returned.

        Args:
            thread (Thread, optional): Defaults to None. The thread to add

        Returns:
            Thread: The added thread is returned
        """

        if thread is None:
            thread = Thread()
        self.threads.append(thread)
        return thread

        Adds a thread to the TestVector. If a thread is provided as an argument,
        it's added to the TestVector. Otherwise, an empty one is created, added
        and returned.

        Args:
            thread (Thread, optional): Defaults to None. The thread to add

        Returns:
            Thread: The added thread is returned
        
Adds a thread to the TestVector. If a thread is provided as an argument,
it's added to the TestVector. Otherwise, an empty one is created, added
and returned.
Adds a thread to the TestVector . If a thread is provided as an argument it ' s added to the TestVector . Otherwise an empty one is created added and returned .
def add_thread(self, thread=None):
        if thread is None:
            thread = Thread()
        self.threads.append(thread)
        return thread
def add_thread ( self , thread = None ) : if thread is None : thread = Thread ( ) self . threads . append ( thread ) return thread
Adds a thread to the TestVector.
Adds a thread to the TestVector .
"""
        Adds a thread to the TestVector. If a thread is provided as an argument,
        it's added to the TestVector. Otherwise, an empty one is created, added
        and returned.

        Args:
            thread (Thread, optional): Defaults to None. The thread to add

        Returns:
            Thread: The added thread is returned
        """
The added thread is returned
The added thread is returned
Thread
self
thread
Defaults to None. The thread to add
Defaults to None . The thread to add