Hi James,
On 4/5/21 4:26 PM, James Prestwood wrote:
This provides a way to know if a work item is actually running
vs only been queued and waiting to run.
---
src/wiphy.c | 7 +++++++
src/wiphy.h | 1 +
2 files changed, 8 insertions(+)
<snip>
}
+bool wiphy_radio_work_is_running(struct wiphy *wiphy, uint32_t id)
+{
+ struct wiphy_radio_work_item *item = l_queue_peek_head(wiphy->work);
+
+ return item->id == id;
Can item be null?
+}
+
Regards,
-Denis