+void TestClass::thread1() {
+
+ CallBackInterface* cb = cbvec[0];
+ for(int i = 0; i < 10; i++) {
+ cb->printInt();
+ this_thread::sleep_for(chrono::seconds(1));
+ }
+}
+
+void TestClass::thread2() {
+
+ CallBackInterface* cb = cbvec[1];
+ for(int i = 0; i < 10; i++) {
+ cb->printInt();
+ this_thread::sleep_for(chrono::seconds(1));
+ }
+}