Chromium Embedded Framework (CEF)  122.1.5+gf09a9bc+chromium-122.0.6261.29
base::PlatformThreadRef Class Reference

Used for thread checking and debugging. More...

#include "include/base/cef_platform_thread.h"

Public Types

typedef cef_platform_thread_handle_t RefType
 

Public Member Functions

 PlatformThreadRef ()
 
 PlatformThreadRef (RefType id)
 
bool operator== (PlatformThreadRef other) const
 
bool is_null () const
 

Detailed Description

Used for thread checking and debugging.

Meant to be as fast as possible. These are produced by PlatformThread::CurrentRef(), and used to later check if we are on the same thread or not by using ==. These are safe to copy between threads, but can't be copied to another process as they have no meaning there. Also, the internal identifier can be re-used after a thread dies, so a PlatformThreadRef cannot be reliably used to distinguish a new thread from an old, dead thread.

Member Typedef Documentation

◆ RefType

typedef cef_platform_thread_handle_t base::PlatformThreadRef::RefType

Constructor & Destructor Documentation

◆ PlatformThreadRef() [1/2]

base::PlatformThreadRef::PlatformThreadRef ( )
inline

◆ PlatformThreadRef() [2/2]

base::PlatformThreadRef::PlatformThreadRef ( RefType  id)
inlineexplicit

Member Function Documentation

◆ is_null()

bool base::PlatformThreadRef::is_null ( ) const
inline

◆ operator==()

bool base::PlatformThreadRef::operator== ( PlatformThreadRef  other) const
inline

The documentation for this class was generated from the following file: