git-svn-id: svn://db.shs.com.ru/pip@839 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
30
main.cpp
30
main.cpp
@@ -47,7 +47,7 @@ public:
|
||||
};
|
||||
|
||||
class TestSnd: public PIObject {
|
||||
PIOBJECT_SUBCLASS(TestSnd, PIObject)
|
||||
PIOBJECT(TestSnd)
|
||||
public:
|
||||
EVENT(reinitSpec)
|
||||
EVENT(coeffsChanged)
|
||||
@@ -58,7 +58,22 @@ public:
|
||||
EVENT(playerValuesReceived)
|
||||
EVENT(calculate)
|
||||
EVENT(autostart)
|
||||
EVENT(syncOff)
|
||||
EVENT(syncOff);
|
||||
};
|
||||
|
||||
class CA: public PIObject {
|
||||
PIOBJECT(CA)
|
||||
EVENT(evA)
|
||||
};
|
||||
|
||||
class CB: public CA {
|
||||
PIOBJECT_SUBCLASS(CB, CA)
|
||||
EVENT(evB)
|
||||
};
|
||||
|
||||
class CC: public CB {
|
||||
PIOBJECT_SUBCLASS(CC, CB)
|
||||
EVENT(evC)
|
||||
};
|
||||
|
||||
#define CONN(sn) CONNECTU(snd, sn, rec, sn)
|
||||
@@ -91,7 +106,7 @@ int main(int argc, char * argv[]) {
|
||||
CONN(syncOff);
|
||||
|
||||
// 0.6 us on call
|
||||
for (int j = 0; j < 10; ++j) {
|
||||
/*for (int j = 0; j < 10; ++j) {
|
||||
tm.reset();
|
||||
for (int i = 0; i < 10000; ++i) {
|
||||
snd->reinitSpec();
|
||||
@@ -100,13 +115,16 @@ int main(int argc, char * argv[]) {
|
||||
}
|
||||
double el = tm.elapsed_m();
|
||||
piCout << el;
|
||||
}
|
||||
|
||||
//snd->dump();
|
||||
}*/
|
||||
piCout << "****";
|
||||
PIPeer().dump();
|
||||
piCout << "----";
|
||||
|
||||
delete snd;
|
||||
delete rec;
|
||||
|
||||
return 0;
|
||||
|
||||
PIString s;
|
||||
s = "gafaffaf";
|
||||
piCout << s;
|
||||
|
||||
Reference in New Issue
Block a user