Example #1
0
static VOID TEngineProcessBasedTaskProc(W param)
{
    cg_log_debug_l4("Entering...\n");

    CgThread *thread = (CgThread *)param;
    if (thread->action != NULL)
        thread->action(thread);
    b_ext_tsk();

    cg_log_debug_l4("Leaving...\n");
}
Example #2
0
static void kthread_btronEntryPoint(kthread_target_btron* arg)
{
	kthread_target_btron target = *arg;
	free(arg);

	// FIXME: return value is ignored
	target.func(target.arg);

	// BTRON threads must terminate with b_ext_tsk;
	//       that's why we need this stub function
	b_ext_tsk();
}