Fixed an even mess up in the PCap and SLiRP code.

This commit is contained in:
OBattler
2017-10-28 07:29:50 +02:00
parent 24f1a0777e
commit 9a0a82b7ac
2 changed files with 4 additions and 0 deletions

View File

@@ -253,6 +253,8 @@ network_pcap_setup(uint8_t *mac, NETRXCB func, void *arg)
pclog(" Starting thread..\n");
poll_tid = thread_create(poll_thread, mac);
thread_started = thread_create_event();
thread_wait_event((event_t *) thread_started, -1);
return(0);

View File

@@ -150,6 +150,8 @@ network_slirp_setup(uint8_t *mac, NETRXCB func, void *arg)
pclog("SLiRP: starting thread..\n");
poll_tid = thread_create(poll_thread, mac);
thread_start = thread_create_event();
thread_wait_event((event_t *) thread_started, -1);
return(0);