Skip to content

Commit 2436ecb

Browse files
authored
Merge pull request #465 from vacantron/develop
Fix incorrect condition in background thread
2 parents 4ad4f43 + a5e6db9 commit 2436ecb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/riscv.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ static pthread_t t2c_thread;
192192
static void *t2c_runloop(void *arg)
193193
{
194194
riscv_t *rv = (riscv_t *) arg;
195-
while (rv->quit) {
195+
while (!rv->quit) {
196196
if (!list_empty(&rv->wait_queue)) {
197197
queue_entry_t *entry =
198198
list_last_entry(&rv->wait_queue, queue_entry_t, list);

0 commit comments

Comments
 (0)