Files
2026-07-10 15:25:05 +08:00

30 lines
921 B
C#

namespace Cef3
{
using System;
using System.Collections.Generic;
using Cef3.Interop;
/// <summary>
/// Implement this interface for asynchronous task execution. If the task is
/// posted successfully and if the associated message loop is still running then
/// the Execute() method will be called on the target thread. If the task fails
/// to post then the task object may be destroyed on the source thread instead of
/// the target thread. For this reason be cautious when performing work in the
/// task object destructor.
/// </summary>
public abstract unsafe partial class CefTask
{
private void execute(cef_task_t* self)
{
CheckSelf(self);
Execute();
}
/// <summary>
/// Method that will be executed on the target thread.
/// </summary>
protected abstract void Execute();
}
}