public TaskCode(string name, dsn_task_type_t type, dsn_task_priority_t pri, ThreadPoolCode pool) { _code = Native.dsn_task_code_register(name, type, pri, pool); }
public extern static void dsn_task_code_set_priority(dsn_task_code_t code, dsn_task_priority_t pri);
public extern static string dsn_task_priority_to_string(dsn_task_priority_t tt);
public extern static dsn_task_code_t dsn_task_code_register(string name, dsn_task_type_t type, dsn_task_priority_t pri, dsn_threadpool_code_t pool);
public extern static void dsn_task_code_query(dsn_task_code_t code, out dsn_task_type_t ptype, out dsn_task_priority_t ppri, out dsn_threadpool_code_t ppool);
public static extern void dsn_task_code_set_priority(int code, dsn_task_priority_t pri);
public static extern string dsn_task_priority_to_string(dsn_task_priority_t tt);
public static extern int dsn_task_code_register(string name, dsn_task_type_t type, dsn_task_priority_t pri, int pool);
public static extern void dsn_task_code_query(int code, out dsn_task_type_t ptype, out dsn_task_priority_t ppri, out int ppool);