Add workqueue system

This commit is contained in:
pixl
2020-07-10 03:16:51 -04:00
parent 02d361b541
commit 1f3fa53721
15 changed files with 529 additions and 15 deletions

View File

@@ -17,7 +17,7 @@
*/
#include "ReceiverMonitor.h"
#include "../../util/thread.h"
#include "../../util/task.h"
#include "../../util/log.h"
#include <utility>
@@ -57,7 +57,7 @@ void ReceiverMonitor::run()
/* Running in a new thread prevents deadlocks since the
* receiver may be enumerating.
*/
thread::spawn({[this, report]() {
task::spawn({[this, report]() {
if (report.subId() == Receiver::DeviceConnection)
this->addDevice(this->_receiver->deviceConnectionEvent
(report));