mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
1cb460ce39
When closing a socket from within the main thread, we need to make sure that the I/O thread does not operate on the related instance of UnixSocketImpl. With this patch, the main thread posts a SocketCloseTask to the I/O thread. The SocketCloseTask removes the socket from the I/O thread's list of watched file descriptors and dispatches an instance of DeleteInstanceRunnable for the socket's UnixSocketImpl, which cleans up the data structures. These steps serialize the close operation within the I/O thread, and ensure that the main thread processed all other dispatched runnables that may use the UnixSocketImpl. |
||
---|---|---|
.. | ||
Makefile.in | ||
UnixSocket.cpp | ||
UnixSocket.h |