Chromium Embedded Framework (CEF)  117.1.0+ga287baf+chromium-117.0.5938.62
base::PlatformThread Namespace Reference

A namespace for low-level thread functions. More...

Functions

PlatformThreadId CurrentId ()
 Gets the current thread id, which may be useful for logging purposes. More...
 
PlatformThreadRef CurrentRef ()
 Gets the current thread reference, which can be used to check if we're on the right thread quickly. More...
 

Detailed Description

A namespace for low-level thread functions.

Chromium uses a class with static methods but CEF uses an actual namespace to avoid linker problems with the sandbox libaries on Windows.

Function Documentation

◆ CurrentId()

PlatformThreadId base::PlatformThread::CurrentId ( )
inline

Gets the current thread id, which may be useful for logging purposes.

◆ CurrentRef()

PlatformThreadRef base::PlatformThread::CurrentRef ( )
inline

Gets the current thread reference, which can be used to check if we're on the right thread quickly.