Not needed anymore after move to C++11 features (nw)

This commit is contained in:
Miodrag Milanovic 2016-04-03 19:47:44 +02:00
parent e0ea593f6d
commit bad2e6199e
4 changed files with 0 additions and 72 deletions

View File

@ -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

View File

@ -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;
}

View File

@ -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

View File

@ -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];
}