Click or drag to resize
CfxTaskRunner Class

[This is preliminary documentation and is subject to change.]

Structure that asynchronously executes tasks on the associated thread. It is safe to call the functions of this structure on any thread. CEF maintains multiple internal threads that are used for handling different types of tasks in different processes. The CfxThreadId definitions in cef_types.h list the common CEF threads. Task runners are also available for other CEF threads as appropriate (for example, V8 WebWorker threads).
Inheritance Hierarchy
SystemObject
  ChromiumCfxObject
    ChromiumCfxBase
      ChromiumCfxLibraryBase
        ChromiumCfxTaskRunner

Namespace: Chromium
Assembly: ChromiumFX (in ChromiumFX.dll)
Syntax
public class CfxTaskRunner : CfxLibraryBase

The CfxTaskRunner type exposes the following members.

Properties
  NameDescription
Public propertyNativePtr
Provides access to the underlying native cef struct. This is a refcounted library struct derived from cef_base_t. Add a ref in order to keep it alive when this managed object go out of scope.
(Inherited from CfxLibraryBase.)
Top
Methods
  NameDescription
Public methodBelongsToCurrentThread
Returns true (1) if this task runner belongs to the current thread.
Public methodBelongsToThread
Returns true (1) if this task runner is for the specified CEF thread.
Public methodStatic memberGetForCurrentThread
Returns the task runner for the current thread. Only CEF threads will have task runners. An NULL reference will be returned if this function is called on an invalid thread.
Public methodStatic memberGetForThread
Returns the task runner for the specified CEF thread.
Public methodIsSame
Returns true (1) if this object is pointing to the same task runner as |that| object.
Public methodPostDelayedTask
Post a task for delayed execution on the thread associated with this task runner. Execution will occur asynchronously. Delayed tasks are not supported on V8 WebWorker threads and will be executed without the specified delay.
Public methodPostTask
Post a task for execution on the thread associated with this task runner. Execution will occur asynchronously.
Top
Remarks
See also the original CEF documentation in cef/include/capi/cef_task_capi.h.
See Also