mirror of
https://github.com/holub/mame
synced 2025-07-01 00:09:18 +03:00
Not needed anymore after move to C++11 features (nw)
This commit is contained in:
parent
e0ea593f6d
commit
bad2e6199e
@ -494,10 +494,4 @@ project ("ocore_" .. _OPTIONS["osd"])
|
||||
}
|
||||
end
|
||||
|
||||
if _OPTIONS["targetos"]=="macosx" then
|
||||
files {
|
||||
MAME_DIR .. "src/osd/sdl/osxutils.h",
|
||||
MAME_DIR .. "src/osd/sdl/osxutils.mm",
|
||||
}
|
||||
end
|
||||
|
||||
|
@ -29,9 +29,6 @@
|
||||
|
||||
#include "eminline.h"
|
||||
|
||||
#if defined(SDLMAME_MACOSX)
|
||||
#include "osxutils.h"
|
||||
#endif
|
||||
#if defined(SDLMAME_LINUX) || defined(SDLMAME_BSD) || defined(SDLMAME_HAIKU) || defined(SDLMAME_EMSCRIPTEN) || defined(SDLMAME_MACOSX)
|
||||
#include <pthread.h>
|
||||
#endif
|
||||
@ -663,10 +660,6 @@ static void *worker_thread_entry(void *param)
|
||||
work_thread_info *thread = (work_thread_info *)param;
|
||||
osd_work_queue *queue = thread->queue;
|
||||
|
||||
#if defined(SDLMAME_MACOSX)
|
||||
void *arp = NewAutoreleasePool();
|
||||
#endif
|
||||
|
||||
// loop until we exit
|
||||
for ( ;; )
|
||||
{
|
||||
@ -715,10 +708,6 @@ static void *worker_thread_entry(void *param)
|
||||
--queue->livethreads;
|
||||
}
|
||||
|
||||
#if defined(SDLMAME_MACOSX)
|
||||
ReleaseAutoreleasePool(arp);
|
||||
#endif
|
||||
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
@ -1,21 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Vas Crabb
|
||||
//============================================================
|
||||
//
|
||||
// osxutils.h - Mac OS X utilities for SDLMAME
|
||||
//
|
||||
// SDLMAME by Olivier Galibert and R. Belmont
|
||||
//
|
||||
//============================================================
|
||||
|
||||
#ifndef __SDLOSXUTILS__
|
||||
#define __SDLOSXUTILS__
|
||||
|
||||
//============================================================
|
||||
// PROTOTYPES
|
||||
//============================================================
|
||||
|
||||
void * NewAutoreleasePool(void);
|
||||
void ReleaseAutoreleasePool(void *pool);
|
||||
|
||||
#endif
|
@ -1,34 +0,0 @@
|
||||
// license:BSD-3-Clause
|
||||
// copyright-holders:Vas Crabb
|
||||
//============================================================
|
||||
//
|
||||
// osxutils.m - Mac OS X utilities for SDLMAME
|
||||
//
|
||||
// SDLMAME by Olivier Galibert and R. Belmont
|
||||
//
|
||||
//============================================================
|
||||
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
// MAMEOS headers
|
||||
#import "osxutils.h"
|
||||
|
||||
|
||||
//============================================================
|
||||
// NewAutoreleasePool
|
||||
//============================================================
|
||||
|
||||
void * NewAutoreleasePool(void)
|
||||
{
|
||||
return [[NSAutoreleasePool alloc] init];
|
||||
}
|
||||
|
||||
|
||||
//============================================================
|
||||
// ReleaseAutoreleasePool
|
||||
//============================================================
|
||||
|
||||
void ReleaseAutoreleasePool(void *pool)
|
||||
{
|
||||
[(NSAutoreleasePool *)pool release];
|
||||
}
|
Loading…
Reference in New Issue
Block a user