Threading examples
January 15, 2026 ยท View on GitHub
This folder contains network examples used by Reference Guide and more.
- auto_reset_event shows how to use xtd::threading::auto_reset_event class.
- barrier shows how to use xtd::threading::barrier class.
- barrier_simple shows how to use xtd::threading::barrier class.
- event_wait_handle shows how to use xtd::threading::event_wait_handle class.
- interlocked shows hows how to use xtd::network::interlocked class.
- interlocked_decrement shows hows how to use xtd::threading::interlocked::decrement and xtd::threading::interlocked::increment methods.
- jthread shows hows how to use xtd::threading::jthread class.
- lock_guard shows how to use xtd::threading:lock_guard class.
- manual_reset_event shows how to use xtd::threading:manual_reset_event class.
- mixing_std_and_xtd_threads shows how to use and mixing xtd::threading::thread and std::thread classes.
- monitor shows how to use xtd::threading:monitor class.
- monitor_lock shows how to use xtd::threading:monitor class.
- monitor_pulse shows how to use xtd::threading:monitor::pulse method.
- monitor_pulse_all shows how to use xtd::threading:monitor::pulse_all method.
- mutex shows how to use xtd::threading:mutex class.
- semaphore shows how to use xtd::threading:semaphore class.
- thread shows hows how to use xtd::threading::thread class.
- thread2 shows hows how to use xtd::threading::thread class.
- thread_pool shows hows how to use xtd::threading::thread_pool class.
- thread_pool2 shows hows how to use xtd::threading::thread_pool class.
- timeout shows how to use xtd::threading:timeout class.
- timer shows how to use xtd::threading:timer class.
- wait_handle shows how to use xtd::threading:wait_handle class.
Build and run any project
Open "Command Prompt" or "Terminal". Navigate to the folder that contains the project and type the following:
xtdc run -t any_project_name