C# Класс Fibers.Fiber

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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.

Описание методов

Delete() публичный Метод

Deletes the current fiber.
This method should only be used in the fiber action that's executing.
public Delete ( ) : void
Результат void

Delete() публичный статический Метод

Deletes the fiber with the specified fiber id.
public static Delete ( uint fiberId ) : void
fiberId uint fiber id.
Результат void

Fiber() публичный Метод

Initializes a new instance of the Fiber class.
public Fiber ( System.Action action ) : System
action System.Action Action.
Результат System

Switch() публичный статический Метод

Switches the execution context to the next fiber.
public static Switch ( uint fiberId ) : void
fiberId uint Fiber id.
Результат void