[Glide64] Remove mutexProcessDList
This commit is contained in:
parent
08c518d38c
commit
7a0c017571
|
@ -1070,7 +1070,6 @@ output: none
|
|||
void CALL DllConfig(HWND hParent)
|
||||
{
|
||||
LOG("DllConfig ()\n");
|
||||
mutexProcessDList->Lock();
|
||||
ReadSettings();
|
||||
|
||||
if (romopen)
|
||||
|
@ -1138,7 +1137,6 @@ void CloseConfig()
|
|||
// hostWindow->UnsubclassWin();
|
||||
hostWindow->SetHWND(NULL);
|
||||
#endif
|
||||
mutexProcessDList->Unlock();
|
||||
}
|
||||
|
||||
AboutDialog::AboutDialog(wxWindow* parent, int id, const wxString& title, const wxPoint& pos, const wxSize& size, long /*style*/) :
|
||||
|
|
|
@ -282,7 +282,6 @@ extern "C" {
|
|||
extern int ev_fullscreen;
|
||||
|
||||
extern int exception;
|
||||
extern wxMutex *mutexProcessDList;
|
||||
|
||||
int InitGfx();
|
||||
void ReleaseGfx();
|
||||
|
|
|
@ -1149,8 +1149,6 @@ IMPLEMENT_APP_NO_MAIN(wxDLLApp)
|
|||
|
||||
bool wxDLLApp::OnInit()
|
||||
{
|
||||
if (mutexProcessDList == NULL)
|
||||
mutexProcessDList = new wxMutex(wxMUTEX_DEFAULT);
|
||||
wxImage::AddHandler(new wxPNGHandler);
|
||||
wxImage::AddHandler(new wxJPEGHandler);
|
||||
PluginPath();
|
||||
|
@ -1160,11 +1158,6 @@ bool wxDLLApp::OnInit()
|
|||
void wxDLLApp::CleanUp()
|
||||
{
|
||||
wxApp::CleanUp();
|
||||
if (mutexProcessDList)
|
||||
{
|
||||
delete mutexProcessDList;
|
||||
mutexProcessDList = NULL;
|
||||
}
|
||||
if (GFXWindow)
|
||||
{
|
||||
GFXWindow->SetHWND(NULL);
|
||||
|
|
|
@ -592,15 +592,6 @@ int depth_buffer_fog;
|
|||
|
||||
EXPORT void CALL ProcessDList(void)
|
||||
{
|
||||
SoftLocker lock(mutexProcessDList);
|
||||
if (!lock.IsOk()) //mutex is busy
|
||||
{
|
||||
// Set an interrupt to allow the game to continue
|
||||
*gfx.MI_INTR_REG |= 0x20;
|
||||
gfx.CheckInterrupts();
|
||||
return;
|
||||
}
|
||||
|
||||
no_dlist = false;
|
||||
update_screen_count = 0;
|
||||
ChangeSize();
|
||||
|
@ -794,7 +785,7 @@ EXPORT void CALL ProcessDList(void)
|
|||
if (fullscreen)
|
||||
{
|
||||
ReleaseGfx ();
|
||||
rdp_reset ();
|
||||
rdp_reset();
|
||||
#ifdef TEXTURE_FILTER
|
||||
if (settings.ghq_use)
|
||||
{
|
||||
|
@ -4138,15 +4129,6 @@ void CALL ProcessRDPList(void)
|
|||
LOG("ProcessRDPList ()\n");
|
||||
LRDP("ProcessRDPList ()\n");
|
||||
|
||||
SoftLocker lock(mutexProcessDList);
|
||||
if (!lock.IsOk()) //mutex is busy
|
||||
{
|
||||
// Set an interrupt to allow the game to continue
|
||||
*gfx.MI_INTR_REG |= 0x20;
|
||||
gfx.CheckInterrupts();
|
||||
return;
|
||||
}
|
||||
|
||||
uint32_t i;
|
||||
uint32_t cmd, length, cmd_length;
|
||||
rdp_cmd_ptr = 0;
|
||||
|
|
Loading…
Reference in New Issue