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

Creates a new thread. More...

Inheritance diagram for digitalClock.makeThread:
Inheritance graph
[legend]
Collaboration diagram for digitalClock.makeThread:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, func)
 Constructor. More...
 
def __del__ (self)
 Object destructor. More...
 
def run (self)
 Method representing the thread's activity. More...
 

Public Attributes

 debug
 

Private Attributes

 __action
 

Detailed Description

Creates a new thread.

Creates a thread.

Constructor & Destructor Documentation

◆ __init__()

def digitalClock.makeThread.__init__ (   self,
  func 
)

Constructor.

Parameters
funcfunction to be executed in this thread.

◆ __del__()

def digitalClock.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.

References _07_alarme_class.alarm.debug, _08b_clock_bezier.makeThread.debug, _08c_clock.makeThread.debug, _08c_clock.clock.debug, and digitalClock.makeThread.debug.

Member Function Documentation

◆ run()

def digitalClock.makeThread.run (   self)

Member Data Documentation

◆ __action

digitalClock.makeThread.__action
private

◆ debug

digitalClock.makeThread.debug

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