C# Class Fibers.Fiber

Mostra file Open project: Stanislav-Sartasov/spsu-mm-programming-second-course Class Usage Examples

Public Methods

Method Description
Delete ( ) : void

Deletes the current fiber.

This method should only be used in the fiber action that's executing.

Delete ( uint fiberId ) : void

Deletes the fiber with the specified fiber id.

Fiber ( System.Action action ) : System

Initializes a new instance of the Fiber class.

Switch ( uint fiberId ) : void

Switches the execution context to the next fiber.

Private Methods

Method Description
FiberRunnerProc ( uint lpParam ) : uint

Fiber method that executes the fiber action.

InnerCreate ( System.Action action ) : void

Creates the fiber.

This method is responsible for the *actual* fiber creation.

Method Details

Delete() public method

Deletes the current fiber.
This method should only be used in the fiber action that's executing.
public Delete ( ) : void
return void

Delete() public static method

Deletes the fiber with the specified fiber id.
public static Delete ( uint fiberId ) : void
fiberId uint fiber id.
return void

Fiber() public method

Initializes a new instance of the Fiber class.
public Fiber ( System.Action action ) : System
action System.Action Action.
return System

Switch() public static method

Switches the execution context to the next fiber.
public static Switch ( uint fiberId ) : void
fiberId uint Fiber id.
return void