device: Add device critical section API

This commit is contained in:
Benjamin Berg
2021-04-23 09:48:39 +02:00
parent 23a4f5b77a
commit 77756e111d
4 changed files with 110 additions and 1 deletions
+4 -1
View File
@@ -94,7 +94,10 @@ fp_device_cancel_in_idle_cb (gpointer user_data)
priv->current_idle_cancel_source = NULL;
cls->cancel (self);
if (priv->critical_section)
priv->cancel_queued = TRUE;
else
cls->cancel (self);
fpi_device_report_finger_status (self, FP_FINGER_STATUS_NONE);