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" |
| def KERNEL_PY.kernel.threadhelper.endedAction | ( | ) |
| def KERNEL_PY.kernel.threadhelper.function_ok | ( | nbsteps = 5 | ) |
Fonction qui se termine correctement
| def KERNEL_PY.kernel.threadhelper.function_with_exception | ( | ) |
Fonction qui aboutie � une lev�e d'exception
| 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.
| def KERNEL_PY.kernel.threadhelper.myCallbackFunction | ( | ) |
| 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().
| 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().
| def KERNEL_PY.kernel.threadhelper.TEST_PeriodicTimer | ( | ) |
| def KERNEL_PY.kernel.threadhelper.TEST_Runner | ( | ) |
References KERNEL_PY.kernel.threadhelper.runWithRunner().
| def KERNEL_PY.kernel.threadhelper.TEST_runWithCallback | ( | ) |
References unittester.run().
| def KERNEL_PY.kernel.threadhelper.TEST_Timeout | ( | ) |
References KERNEL_PY.kernel.threadhelper.runWithTimeout().
| def KERNEL_PY.kernel.threadhelper.testIfContinue | ( | ) |
|
private |
|
private |
| string KERNEL_PY.kernel.threadhelper.testfilename = "/tmp/threadhelperTestFile" |