service/sockets: Add worker abstraction to execute blocking calls asynchronously

This abstraction allows executing blocking functions (like recvfrom on a
socket configured for blocking) without blocking the service thread.
It is intended to be used with SleepClientThread.
This commit is contained in:
ReinUsesLisp
2020-07-21 04:26:20 -03:00
parent 80b4bd3583
commit 5692c48ab7
2 changed files with 133 additions and 0 deletions

View File

@ -491,6 +491,7 @@ add_library(core STATIC
hle/service/sm/controller.h
hle/service/sm/sm.cpp
hle/service/sm/sm.h
hle/service/sockets/blocking_worker.h
hle/service/sockets/bsd.cpp
hle/service/sockets/bsd.h
hle/service/sockets/ethc.cpp