Show / Hide Table of Contents

Class ThreadPoolWorkItemFactory

Represents factory of thread pool work items.

Inheritance
object
ThreadPoolWorkItemFactory
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: DotNext.Threading
Assembly: DotNext.dll
Syntax
[CLSCompliant(false)]
public static class ThreadPoolWorkItemFactory

Methods

| Edit this page View Source

Create<T>(delegate*<T, void>, T)

Creates thread pool work item.

Declaration
public static IThreadPoolWorkItem Create<T>(delegate*<T, void> workItem, T arg)
Parameters
Type Name Description
delegate*<T, void> workItem

The pointer to the method implementing work item logic.

T arg

The argument to be passed to the method implementing work item logic.

Returns
Type Description
IThreadPoolWorkItem

The work item.

Type Parameters
Name Description
T

The type of the work item argument.

| Edit this page View Source

Create<T1, T2>(delegate*<T1, T2, void>, T1, T2)

Creates thread pool work item.

Declaration
public static IThreadPoolWorkItem Create<T1, T2>(delegate*<T1, T2, void> workItem, T1 arg1, T2 arg2)
Parameters
Type Name Description
delegate*<T1, T2, void> workItem

The pointer to the method implementing work item logic.

T1 arg1

The first argument to be passed to the method implementing work item logic.

T2 arg2

The second argument to be passed to the method implementing work item logic.

Returns
Type Description
IThreadPoolWorkItem

The work item.

Type Parameters
Name Description
T1

The type of the work item first argument.

T2

The type of the work item second argument.

| Edit this page View Source

Create<T1, T2, T3>(delegate*<T1, T2, T3, void>, T1, T2, T3)

Creates thread pool work item.

Declaration
public static IThreadPoolWorkItem Create<T1, T2, T3>(delegate*<T1, T2, T3, void> workItem, T1 arg1, T2 arg2, T3 arg3)
Parameters
Type Name Description
delegate*<T1, T2, T3, void> workItem

The pointer to the method implementing work item logic.

T1 arg1

The first argument to be passed to the method implementing work item logic.

T2 arg2

The second argument to be passed to the method implementing work item logic.

T3 arg3

The third argument to be passed to the method implementing work item logic.

Returns
Type Description
IThreadPoolWorkItem

The work item.

Type Parameters
Name Description
T1

The type of the work item first argument.

T2

The type of the work item second argument.

T3

The type of the work item third argument.

  • Edit this page
  • View Source
☀
☾
In this article
Back to top
Supported by the .NET Foundation
☀
☾