mirror of
https://github.com/Relintai/osxcross.git
synced 2025-02-03 22:45:56 +01:00
21 lines
273 B
C++
21 lines
273 B
C++
|
#include <type_traits>
|
||
|
#include <thread>
|
||
|
#include <mutex>
|
||
|
#include <iostream>
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
auto test = []() -> int
|
||
|
{
|
||
|
return 0;
|
||
|
};
|
||
|
|
||
|
std::mutex m;
|
||
|
std::thread t(test);
|
||
|
t.join();
|
||
|
|
||
|
std::cout << "Hello World!" << std::endl;
|
||
|
|
||
|
return 0;
|
||
|
}
|