Skip to content

Commit

Permalink
Adding Windows version of BX_THREAD_JOIN fixes Voodoo thread terminat…
Browse files Browse the repository at this point in the history
…ion.

TODO: Use BX_THREAD_JOIN for all other threads in Bochs.
  • Loading branch information
vruppert committed Dec 28, 2024
1 parent b14605d commit 911e17f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bochs/bxthread.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// $Id$
/////////////////////////////////////////////////////////////////////////
//
// Copyright (C) 2017-2021 The Bochs Project
// Copyright (C) 2017-2024 The Bochs Project
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
Expand Down Expand Up @@ -31,7 +31,7 @@
#define BX_THREAD_EXIT return 0
#define BX_THREAD_CREATE(name,arg,var) do { var = CreateThread(NULL, 0, name, arg, 0, NULL); } while (0)
#define BX_THREAD_KILL(var) TerminateThread(var, 0)
#define BX_THREAD_JOIN(var)
#define BX_THREAD_JOIN(var) WaitForSingleObject(var, INFINITE)
#define BX_LOCK(mutex) EnterCriticalSection(&(mutex))
#define BX_UNLOCK(mutex) LeaveCriticalSection(&(mutex))
#define BX_MUTEX(mutex) CRITICAL_SECTION mutex
Expand Down

0 comments on commit 911e17f

Please sign in to comment.