Fixed the SLiRP and SCSI mutexes.
This commit is contained in:
@@ -36,13 +36,6 @@ static void *slirpMutex;
|
||||
|
||||
|
||||
|
||||
void
|
||||
network_slirp_mutex_init(void)
|
||||
{
|
||||
slirpMutex = thread_create_mutex(L"86Box.SLiRPMutex");
|
||||
}
|
||||
|
||||
|
||||
static void
|
||||
startslirp(void)
|
||||
{
|
||||
@@ -176,6 +169,8 @@ network_slirp_setup(uint8_t *mac, NETRXCB func, void *arg)
|
||||
poll_rx = func;
|
||||
poll_arg = arg;
|
||||
|
||||
slirpMutex = thread_create_mutex(L"86Box.SLiRPMutex");
|
||||
|
||||
poll_data.wake_poll_thread = thread_create_event();
|
||||
poll_data.poll_complete = thread_create_event();
|
||||
|
||||
@@ -208,6 +203,8 @@ network_slirp_close(void)
|
||||
;
|
||||
#endif
|
||||
|
||||
thread_close_mutex(slirpMutex);
|
||||
|
||||
/* OK, now shut down SLiRP itself. */
|
||||
QueueDestroy(sl);
|
||||
slirp_exit(0);
|
||||
|
||||
@@ -89,8 +89,6 @@ network_init(void)
|
||||
|
||||
if (network_type != NET_TYPE_PCAP)
|
||||
network_pcap_close();
|
||||
|
||||
network_slirp_mutex_init();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user