tun2socks 0.0.1

High performance tun2socks
Documentation
/*
 ============================================================================
 Name        : hev-task-executer.c
 Author      : Heiher <r@hev.cc>
 Copyright   : Copyright (c) 2017 everyone.
 Description :
 ============================================================================
 */

#include "hev-task-executer.h"
#include "kern/core/hev-task-system-private.h"

void
hev_task_executer (HevTask *task)
{
    if (_setjmp (task->context) == 0)
        return;

    task->entry (task->data);

    hev_task_system_kill_current_task ();
}