|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CefBaseRefCounted | +--CefThreadin cef_thread.h
A simple thread abstraction that establishes a message loop on a new thread. The consumer uses CefTaskRunner to execute code on the thread's message loop. The thread is terminated when the CefThread object is destroyed or Stop() is called. All pending tasks queued on the thread's message loop will run to completion before the thread is terminated. CreateThread() can be called on any valid CEF thread in either the browser or render process. This class should only be used for tasks that require a dedicated thread. In most cases you can post tasks to an existing CEF thread instead of creating a new one; see cef_task.h for details.
Method Summary | |
static CefRefPtr< CefThread > |
CreateThread( const CefString& display_name )
Create and start a new thread with default/recommended values. |
static CefRefPtr< CefThread > |
CreateThread( const CefString& display_name, cef_thread_priority_t priority, cef_message_loop_type_t message_loop_type, bool stoppable, cef_com_init_mode_t com_init_mode )
Create and start a new thread. |
virtual cef_platform_thread_id_t |
GetPlatformThreadId()= 0
Returns the platform thread ID. |
virtual CefRefPtr< CefTaskRunner > |
GetTaskRunner()= 0
Returns the CefTaskRunner that will execute code on this thread's message loop. |
virtual bool |
IsRunning()= 0
Returns true if the thread is currently running. |
virtual void |
Stop()= 0
Stop and join the thread. |
Methods inherited from class CefBaseRefCounted |
AddRef, Release, HasOneRef, HasAtLeastOneRef |
Method Detail |
public static CefRefPtr< CefThread > CreateThread( const CefString& display_name );
public static CefRefPtr< CefThread > CreateThread( const CefString& display_name, cef_thread_priority_t priority, cef_message_loop_type_t message_loop_type, bool stoppable, cef_com_init_mode_t com_init_mode );
public virtual cef_platform_thread_id_t GetPlatformThreadId()= 0;
public virtual CefRefPtr< CefTaskRunner > GetTaskRunner()= 0;
public virtual bool IsRunning()= 0;
public virtual void Stop()= 0;
|
CEF3 C++ API Docs - Version 80.1.4+g8927396+chromium-80.0.3987.149 | ||||||
FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |