chang old vc project

This commit is contained in:
unknown 2020-09-16 16:26:00 +08:00
parent 858bcc7a94
commit 49f0ad6c1f
3 changed files with 11 additions and 1 deletions

View File

@ -19,6 +19,13 @@ public:
* @return {void*} 线退
*/
virtual void* run(void) = 0;
/**
* 线 run()
* 线线线
* 线 start() 线
*/
virtual void init(void) {}
};
template<typename T> class tbox;

View File

@ -27,7 +27,7 @@
1 TEXTINCLUDE
BEGIN
"resource_vc2015.h\0"
"resource_vc2017.h\0"
END
2 TEXTINCLUDE

View File

@ -87,6 +87,9 @@ void* thread::thread_run(void* arg)
break;
}
}
thr->init();
thr->sync_->push(NULL);
// 如果线程创建时为分离模式,则当 run 运行时用户有可能