1 #include "scx/Thread.hpp"
6 void hello(int a
, int b
)
22 for (size_t i
= 0; i
< 100; ++i
)
26 cout
<< endl
<< a
<< endl
;
38 Function
<void (int)> f1(&test::print
, &a
);
39 Function
<void (int)> f2(&test::print
, &b
);
40 Function
<void (int)> f3(&test::print
, &c
);
44 Thread
* th3
= new Thread();
47 cout
<< th1
.GetId() << endl
;
48 cout
<< th2
.GetId() << endl
;
49 cout
<< th3
->GetId() << endl
;
57 //Function<void (int, int)> f4(&hello);
59 th4
.Run(Function
<void (int, int)>(&hello
), 4, 5);