cef_task_t

Type Alias cef_task_t 

Source
pub type cef_task_t = _cef_task_t;
Expand description

Implement this structure for asynchronous task execution. If the task is posted successfully and if the associated message loop is still running then the execute() function 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.

NOTE: This struct is allocated client-side.

Aliased Type§

#[repr(C)]
pub struct cef_task_t { pub base: _cef_base_ref_counted_t, pub execute: Option<unsafe extern "C" fn(*mut _cef_task_t)>, }

Fields§

§base: _cef_base_ref_counted_t

Base structure.

§execute: Option<unsafe extern "C" fn(*mut _cef_task_t)>

Method that will be executed on the target thread.