init lserp cs 5.0
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
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();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user