void TestCancellation () { REMARK (__FUNCTION__); for ( int n = 2; n <= 10; ++n ) { for ( int m = 0; m <= n - 1; ++m ) { g_numFunctions = n; g_functionToCancel = m; ResetEhGlobals(); RunCancellationTest<ParInvokeLauncherTask, CancellatorTask>(); } } }
void TestExceptionHandling() { REMARK (__FUNCTION__); for( size_t n = 2; n <= 10; ++n ) { for( exception_mask = 1; exception_mask < (size_t) (1 << n); ++exception_mask ) { ResetEhGlobals(); TRY(); REMARK("Calling parallel_invoke, number of functions = %d, exception_mask = %d\n", n, exception_mask); call_parallel_invoke(n, test_with_throw0, test_with_throw1, test_with_throw2, test_with_throw3, test_with_throw4, test_with_throw5, test_with_throw6, test_with_throw7, test_with_throw8, test_with_throw9, NULL); CATCH_AND_ASSERT(); } } }
inline void ResetGlobals () { ResetEhGlobals(); g_BoostExecutedCount = true; g_TaskWasCancelled = false; g_CurStat.Reset(); }
void TestCancellation() { REMARK (__FUNCTION__); ResetEhGlobals(); RunCancellationTest<my_worker_pforeach_task<Iterator>, CancellatorTask>(); }