merged concurrent to main library

removed PIConditionLock, use PIMutex instead
This commit is contained in:
2020-07-30 18:50:42 +03:00
parent 4dd59132d5
commit 2ffc457566
31 changed files with 558 additions and 2176 deletions

View File

@@ -1,5 +1,5 @@
#include "pip.h"
#ifdef PIP_LUA
/*#ifdef PIP_LUA
#include "piluaprogram.h"
static const char * script
@@ -30,3 +30,29 @@ int main() {
return 0;
}
#endif
*/
#include "picodeparser.h"
int main() {
piDebug = false;
double min = -1, max = -1, mean = 0;
for (int i = 0; i < 50; ++i) {
PITimeMeasurer tm;
/*PICodeParser cp;
cp.parseFile("SH_plugin_base.h");*/
PIStringList sl;
for (int i = 0; i < 5000; ++i) {
//PIString s("1234567890-=");
//sl << s;
sl << PIString("1234567890-=");
}
double ms = tm.elapsed_m();
if (min < 0) min = ms;
if (max < 0) max = ms;
min = piMin(min, ms);
max = piMax(max, ms);
mean += ms;
}
piDebug = true;
piCout << min << (mean / 50) << max;
}