19 lines
463 B
C++
19 lines
463 B
C++
#include <iostream>
|
|
|
|
import ru.landgrafhomyak.BGTU.networks_1.exceptions;
|
|
import ru.landgrafhomyak.BGTU.networks_1.threads;
|
|
|
|
|
|
int main() {
|
|
try {
|
|
auto t = LdH::fork("123", []() { std::cout << "123" << std::endl; });
|
|
t.join();
|
|
t.destroy();
|
|
} catch (LdH::Exception const &e) {
|
|
std::cerr << "Uncaught exception in main:\n";
|
|
e.printStackTrace();
|
|
} catch (std::exception const &e) {
|
|
std::cerr << "Uncaught exception in main:\n" << e.what() << "\n";
|
|
}
|
|
}
|