Version: 9.12.0
KERNEL_PY.kernel.threadhelper Namespace Reference

Data Structures

class  Runner
 
class  PeriodicTimer
 

Functions

def testIfContinue ()
 
def endedAction ()
 
def TEST_PeriodicTimer ()
 
def function_ok (nbsteps=5)
 
def function_with_exception ()
 
def infinite_function ()
 
def runWithRunner (functionToRun)
 
def runWithTimeout (functionToRun, timeout=10)
 
def TEST_Timeout ()
 
def TEST_Runner ()
 
def myCallbackFunction ()
 
def TEST_runWithCallback ()
 

Variables

string __author__ = "gboulant"
 
string __date__ = "$1 avr. 2010 18:12:38$"
 
string testfilename = "/tmp/threadhelperTestFile"
 

Function Documentation

◆ endedAction()

def KERNEL_PY.kernel.threadhelper.endedAction ( )

◆ function_ok()

def KERNEL_PY.kernel.threadhelper.function_ok (   nbsteps = 5)
Fonction qui se termine correctement

◆ function_with_exception()

def KERNEL_PY.kernel.threadhelper.function_with_exception ( )
Fonction qui aboutie � une lev�e d'exception

◆ infinite_function()

def KERNEL_PY.kernel.threadhelper.infinite_function ( )
fonction de dur�e infinie (tant qu'il y a du courant �l�ctrique) pour
le test du timeout.

◆ myCallbackFunction()

def KERNEL_PY.kernel.threadhelper.myCallbackFunction ( )

◆ runWithRunner()

def KERNEL_PY.kernel.threadhelper.runWithRunner (   functionToRun)
Ex�cute la fonction avec le runner. On illustre ici la modalit�
d'utilisation du Runner.

Referenced by KERNEL_PY.kernel.threadhelper.TEST_Runner().

◆ runWithTimeout()

def KERNEL_PY.kernel.threadhelper.runWithTimeout (   functionToRun,
  timeout = 10 
)
Ex�cute la fonction avec le runner. On illustre ici la modalit�
d'utilisation du Runner.

Referenced by KERNEL_PY.kernel.threadhelper.TEST_Timeout().

◆ TEST_PeriodicTimer()

def KERNEL_PY.kernel.threadhelper.TEST_PeriodicTimer ( )

◆ TEST_Runner()

def KERNEL_PY.kernel.threadhelper.TEST_Runner ( )

◆ TEST_runWithCallback()

def KERNEL_PY.kernel.threadhelper.TEST_runWithCallback ( )

References unittester.run().

◆ TEST_Timeout()

def KERNEL_PY.kernel.threadhelper.TEST_Timeout ( )

◆ testIfContinue()

def KERNEL_PY.kernel.threadhelper.testIfContinue ( )

Variable Documentation

◆ __author__

string KERNEL_PY.kernel.threadhelper.__author__ = "gboulant"
private

◆ __date__

string KERNEL_PY.kernel.threadhelper.__date__ = "$1 avr. 2010 18:12:38$"
private

◆ testfilename

string KERNEL_PY.kernel.threadhelper.testfilename = "/tmp/threadhelperTestFile"