![]() |
Python_2
1.0
|
Class for creating a new thread. More...
Public Member Functions | |
def | __init__ (self, func) |
Constructor. More... | |
def | __del__ (self) |
Object destructor. More... | |
def | run (self) |
Starts this thread. More... | |
Private Attributes | |
__action | |
Class for creating a new thread.
Creates a thread.
def _07_alarme_class.alarm.makeThread.__init__ | ( | self, | |
func | |||
) |
Constructor.
func | function to run on this thread. |
def _07_alarme_class.alarm.makeThread.__del__ | ( | self | ) |
Object destructor.
In Python, destructors are needed much less, because Python has a garbage collector that handles memory management. However, there are other resources to be dealt with, such as: sockets and database connections to be closed, files, buffers and caches to be flushed.
def _07_alarme_class.alarm.makeThread.run | ( | self | ) |
Starts this thread.
Method representing the thread's activity. This method may be overriden in a subclass.
References _07_alarme_class.alarm.makeThread.__action.
Referenced by _08a_pack_circles.Timer.restart(), and _08a_pack_circles.Timer.run().
|
private |