Skip to content

Commit

Permalink
Merge 80a0d94 into sapling-pr-archive-ktf
Browse files Browse the repository at this point in the history
  • Loading branch information
ktf authored Sep 26, 2024
2 parents 4b54694 + 80a0d94 commit 385077b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Framework/Core/src/DataProcessingDevice.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -961,6 +961,10 @@ void DataProcessingDevice::startPollers()
deviceContext.gracePeriodTimer = (uv_timer_t*)malloc(sizeof(uv_timer_t));
deviceContext.gracePeriodTimer->data = new ServiceRegistryRef(mServiceRegistry);
uv_timer_init(state.loop, deviceContext.gracePeriodTimer);

deviceContext.dataProcessingGracePeriodTimer = (uv_timer_t*)malloc(sizeof(uv_timer_t));
deviceContext.dataProcessingGracePeriodTimer->data = new ServiceRegistryRef(mServiceRegistry);
uv_timer_init(state.loop, deviceContext.dataProcessingGracePeriodTimer);
}

void DataProcessingDevice::stopPollers()
Expand Down Expand Up @@ -992,6 +996,11 @@ void DataProcessingDevice::stopPollers()
delete (ServiceRegistryRef*)deviceContext.gracePeriodTimer->data;
free(deviceContext.gracePeriodTimer);
deviceContext.gracePeriodTimer = nullptr;

uv_timer_stop(deviceContext.dataProcessingGracePeriodTimer);
delete (ServiceRegistryRef*)deviceContext.dataProcessingGracePeriodTimer->data;
free(deviceContext.dataProcessingGracePeriodTimer);
deviceContext.dataProcessingGracePeriodTimer = nullptr;
}

void DataProcessingDevice::InitTask()
Expand Down

0 comments on commit 385077b

Please sign in to comment.