Skip to content

Commit 27dbf3c

Browse files
committed
ETHER: eth_reader_refactor, move variables
1 parent 148d921 commit 27dbf3c

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

sim_ether.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1971,13 +1971,14 @@ ETH_DEV *dev;
19711971
int status = 0;
19721972
int (*queue_func)(const ETH_DEV *);
19731973

1974-
sim_debug(dev->dbit, dev->dptr, "Reader Thread Starting\n");
19751974
dev = thr_info->eth_device;
19761975
#if !defined(__APPLE__)
19771976
pthread_setname_np(pthread_self(), thr_info->thr_name);
19781977
#else
19791978
pthread_setname_np(thr_info->thr_name);
19801979
#endif
1980+
1981+
sim_debug(dev->dbit, dev->dptr, "Reader Thread Starting\n");
19811982
dev->reader_status = ETH_THREAD_RUNNING;
19821983

19831984
/* Boost Priority for this I/O thread vs the CPU instruction execution
@@ -2188,13 +2189,14 @@ ETH_WRITE_REQUEST *request = NULL;
21882189
this thread needs to run */
21892190
sim_os_set_thread_priority (PRIORITY_ABOVE_NORMAL);
21902191

2191-
sim_debug(dev->dbit, dev->dptr, "Writer Thread Starting\n");
21922192
dev = thr_info->eth_device;
21932193
#if !defined(__APPLE__)
21942194
pthread_setname_np(pthread_self(), thr_info->thr_name);
21952195
#else
21962196
pthread_setname_np(thr_info->thr_name);
21972197
#endif
2198+
2199+
sim_debug(dev->dbit, dev->dptr, "Writer Thread Starting\n");
21982200
dev->writer_status = ETH_THREAD_IDLE;
21992201

22002202
/* Signal that we've started... */

0 commit comments

Comments
 (0)