Use sc_intr in file_handler

Replace manual interruption handling by the recent sc_intr mechanism.
This commit is contained in:
Romain Vimont
2021-11-18 21:33:25 +01:00
parent 0ba2686e1d
commit 84334cf7db
2 changed files with 20 additions and 18 deletions

View File

@@ -8,6 +8,7 @@
#include "adb.h"
#include "util/cbuf.h"
#include "util/thread.h"
#include "util/intr.h"
typedef enum {
ACTION_INSTALL_APK,
@@ -29,8 +30,9 @@ struct file_handler {
sc_cond event_cond;
bool stopped;
bool initialized;
sc_pid current_process;
struct file_handler_request_queue queue;
struct sc_intr intr;
};
bool