public static void setStopped(ref Runflags rf) { if (!rf.HasFlag(Runflags.Stopped)) rf |= Runflags.Stopped; else rf -= Runflags.Stopped; }
public static void setPause(ref Runflags rf) { if (!rf.HasFlag(Runflags.Pause)) rf |= Runflags.Pause; else rf -= Runflags.Pause; }
public static void setDone(ref Runflags rf) { if (!rf.HasFlag(Runflags.Done)) rf |= Runflags.Done; else rf -= Runflags.Stopped; }
public static extern int spe_context_run(IntPtr spe, ref spe_start_t entry, Runflags runflags, IntPtr argp, IntPtr envp, ref spe_stop_info_t stopinfo);
public static extern int spe_context_run(IntPtr spe, ref spe_start_t entry, Runflags runflags, IntPtr argp, IntPtr envp, ref spe_stop_info_t stopinfo);
public static bool stop(Runflags rf) { return rf.HasFlag(Runflags.Stop); }
public static bool pause(Runflags rf) { return rf.HasFlag(Runflags.Pause); }
public static bool isStopped(Runflags rf) { return rf.HasFlag(Runflags.Stopped); }
public static bool isDone(Runflags rf) { return rf.HasFlag(Runflags.Done); }