Chromium Embedded Framework (CEF)  126.2.0+g5c56e98+chromium-126.0.6478.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.