call_once2
September 14, 2025 ยท View on GitHub
Shows how to use call_once struct.
Sources
Build and run
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run
Output
(main) begin
(thread_proc) call once 1 times
(thread_proc) running 1 times
(thread_proc) running 2 times
(thread_proc) running 3 times
(main) end