Skip to content

Commit 7854b3a

Browse files
committed
add missed '_onRun' for StaticThreadController callback
1 parent 1c59599 commit 7854b3a

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

StaticThreadController.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ class StaticThreadController: public Thread{
4040
// run() Method is overrided
4141
void run() override
4242
{
43+
// Run this thread before
44+
if(_onRun != nullptr && shouldRun())
45+
_onRun();
46+
4347
for(int i = 0; i < N; i++){
4448
// Is enabled? Timeout exceeded?
4549
if(thread[i]->shouldRun()){

0 commit comments

Comments
 (0)