System.Runtime.InteropServices.Marshal.GetThreadFromFiberCookie Method

Converts a fiber cookie into the corresponding System.Threading.Thread instance.

Syntax

[System.Obsolete("This method has been deprecated")]
public static System.Threading.Thread GetThreadFromFiberCookie (int cookie)

Parameters

cookie
An integer that represents a fiber cookie.

Returns

A thread that corresponds to the cookie parameter.

Remarks

Fiber cookies are opaque tokens that are used by the host when alerting the common language runtime to its fiber-scheduling decisions. They consist of a stack and register context.

Requirements

Namespace: System.Runtime.InteropServices
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0