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

This commit is contained in:
2016-09-28 12:25:03 +00:00
parent d7579abfc0
commit a75fbf26b5
5 changed files with 14 additions and 3 deletions

View File

@@ -239,7 +239,9 @@ __THREAD_FUNC__ PIThread::thread_function(void * t) {
ct.started();
while (!ct.terminating) {
if (ct.lockRun) ct.mutex_.lock();
//piCout << "thread" << ct.name() << "...";
ct.run();
//piCout << "thread" << ct.name() << "done";
//printf("thread %p tick\n", &ct);
if (ct.ret_func != 0) ct.ret_func(ct.data_);
if (ct.lockRun) ct.mutex_.unlock();