Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Language

C++

Compiler

gcc HEAD 14.0.0 20230625 (experimental)

Options
Warnings
Don't Use Boost
C++2b(GNU)
no pedantic

$ g++ prog.cc -Wall -Wextra -std=gnu++2b
get_id() example
native_handle() example
join() example
hardware_concurrency() example

hardware_concurrency:12
starting thread
id: 140516723173120
native handle: 140516723173120
waiting for thread completion
thread ended

detach() example

starting thread
thread detached
thread ended

Exit Code:
0