Skip to content

Commit 52c5cbd

Browse files
[hrpExecutionContext] update component state in thread execution function
1 parent 543006d commit 52c5cbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ec/hrpEC/hrpEC-common.cpp

+3-1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ namespace RTC
5454
return 0;
5555
}
5656
do{
57+
ExecutionContextBase::invokeWorkerPreDo();
58+
5759
loop++;
5860
if (loop % debug_count == 0 && ENABLE_DEBUG_PRINT) gettimeofday(&debug_tv1, NULL);
5961
if (!waitForNextPeriod()){
@@ -203,7 +205,7 @@ namespace RTC
203205
void hrpExecutionContext::activate ()
204206
{
205207
m_thread_pending = true;
206-
PeriodicExecutionContext::activate ();
208+
PeriodicExecutionContext::activate();
207209
}
208210

209211
void hrpExecutionContext::resetProfile()

0 commit comments

Comments
 (0)