Python_2  1.0
Public Member Functions | Private Attributes | List of all members
_07_alarme_class.alarm.makeThread Class Reference

Class for creating a new thread. More...

Inheritance diagram for _07_alarme_class.alarm.makeThread:
Inheritance graph
[legend]
Collaboration diagram for _07_alarme_class.alarm.makeThread:
Collaboration graph
[legend]

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
 

Detailed Description

Class for creating a new thread.

Creates a thread.

Constructor & Destructor Documentation

◆ __init__()

def _07_alarme_class.alarm.makeThread.__init__ (   self,
  func 
)

Constructor.

Parameters
funcfunction to run on this thread.

◆ __del__()

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.

Member Function Documentation

◆ run()

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().

Member Data Documentation

◆ __action

_07_alarme_class.alarm.makeThread.__action
private

The documentation for this class was generated from the following file: