private DeleteFiber ( uint lpFiber ) : void | ||
lpFiber | uint | |
Résultat | void |
/// <summary> /// Fiber method that executes the fiber action. /// </summary> /// <param name='lpParam'>Lp parameter.</param> /// <returns>fiber status code.</returns> private uint FiberRunnerProc(uint lpParam) { uint status = 0; try { action(); } catch (Exception) { status = 1; throw; } finally { if (status == 1) { UnmanagedFiberAPI.DeleteFiber((uint)Id); } } return(status); }
/// <summary> /// Deletes the fiber with the specified fiber id. /// </summary> /// <param name='fiberId'>fiber id.</param> public static void Delete(uint fiberId) { UnmanagedFiberAPI.DeleteFiber(fiberId); }
/// <summary> /// Deletes the current fiber. /// </summary> /// <remarks>This method should only be used in the fiber action that's executing.</remarks> public void Delete() { Console.WriteLine("Fiber {0} deleted", Id); UnmanagedFiberAPI.DeleteFiber(Id); }
/// <summary> /// Deletes the current fiber. /// </summary> /// <remarks>This method should only be used in the fiber action that's executing.</remarks> public void Delete() { UnmanagedFiberAPI.DeleteFiber(Id); }