Shows how to use xtd::threading::thread class.
#include <xtd/threading/thread>
#include <xtd/console>
#include <xtd/startup>
class thread_example {
public:
static void thread_proc() {
for (
auto i = 0;
i < 10; ++
i) {
}
}
static void main() {
for (
auto i = 0;
i < 4; ++
i) {
}
console::write_line(
"Main thread: thread_proc.Join has returned. Press Enter to end program.");
}
};