git-svn-id: svn://db.shs.com.ru/pip@807 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2019-06-23 13:39:55 +00:00
parent 8a2a9e1684
commit 6da4f268d2
6 changed files with 43 additions and 20 deletions

View File

@@ -453,7 +453,13 @@ void PIThread::_runThread() {
if (lockRun) mutex_.lock();
//PICout(PICoutManipulators::DefaultControls) << "thread" << this << "lock" << "ok";
//PICout(PICoutManipulators::DefaultControls) << "thread" << this << "run" << "...";
#ifdef PIP_INTROSPECTION
PITimeMeasurer _tm;
#endif
run();
#ifdef PIP_INTROSPECTION
PIINTROSPECTION_THREAD_RUN_DONE(this, ullong(_tm.elapsed_u()));
#endif
//PICout(PICoutManipulators::DefaultControls) << "thread" << this << "run" << "ok";
//printf("thread %p tick\n", this);
//PICout(PICoutManipulators::DefaultControls) << "thread" << this << "ret_func" << "...";

View File

@@ -30,6 +30,7 @@
#include "piobject.h"
class PIThread;
class PIIntrospectionThreads;
class PIP_EXPORT __PIThreadCollection {
public:
@@ -61,6 +62,7 @@ typedef void (*ThreadFunc)(void * );
class PIP_EXPORT PIThread: public PIObject
{
PIOBJECT_SUBCLASS(PIThread, PIObject)
friend class PIIntrospectionThreads;
public:
//! Contructs thread with custom data "data", external function "func" and main loop delay "loop_delay".