Chromium Embedded Framework (CEF)  126.2.0+g5c56e98+chromium-126.0.6478.62
cef_task.h File Reference
#include "include/cef_base.h"

Classes

class  CefTask
 Implement this interface for asynchronous task execution. More...
 
class  CefTaskRunner
 Class that asynchronously executes tasks on the associated thread. More...
 

Typedefs

typedef cef_thread_id_t CefThreadId
 

Functions

bool CefCurrentlyOn (CefThreadId threadId)
 Returns true if called on the specified thread. More...
 
bool CefPostTask (CefThreadId threadId, CefRefPtr< CefTask > task)
 Post a task for execution on the specified thread. More...
 
bool CefPostDelayedTask (CefThreadId threadId, CefRefPtr< CefTask > task, int64_t delay_ms)
 Post a task for delayed execution on the specified thread. More...
 

Typedef Documentation

◆ CefThreadId

Function Documentation

◆ CefCurrentlyOn()

bool CefCurrentlyOn ( CefThreadId  threadId)

Returns true if called on the specified thread.

Equivalent to using CefTaskRunner::GetForThread(threadId)->BelongsToCurrentThread().

◆ CefPostDelayedTask()

bool CefPostDelayedTask ( CefThreadId  threadId,
CefRefPtr< CefTask task,
int64_t  delay_ms 
)

Post a task for delayed execution on the specified thread.

Equivalent to using CefTaskRunner::GetForThread(threadId)->PostDelayedTask(task, delay_ms).

◆ CefPostTask()

bool CefPostTask ( CefThreadId  threadId,
CefRefPtr< CefTask task 
)

Post a task for execution on the specified thread.

Equivalent to using CefTaskRunner::GetForThread(threadId)->PostTask(task).