summaryrefslogtreecommitdiff
path: root/macosx/EmuThread.m
diff options
context:
space:
mode:
authorSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-31 01:13:04 +0000
committerSND\MaddTheSane_cp <SND\MaddTheSane_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2012-10-31 01:13:04 +0000
commit239ab668a152342afd89f8ef8d41bee525b4c0fa (patch)
tree94da317b5c8856900332c57a1f004b19415ba2da /macosx/EmuThread.m
parent0be345916ff9934055c030bf3bd53930a379c75f (diff)
downloadpcsxr-239ab668a152342afd89f8ef8d41bee525b4c0fa.tar.gz
Naming the PSX thread on OS X.
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@80819 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'macosx/EmuThread.m')
-rw-r--r--macosx/EmuThread.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/macosx/EmuThread.m b/macosx/EmuThread.m
index ca77d160..b2ca8d5e 100644
--- a/macosx/EmuThread.m
+++ b/macosx/EmuThread.m
@@ -29,12 +29,16 @@ static pthread_mutex_t eventMutex;
#define EMUEVENT_RESET (1<<1)
#define EMUEVENT_STOP (1<<2)
+static NSString *ThreadInfo = @"PSX Emu Background thread";
+
@implementation EmuThread
- (void)EmuThreadRun:(id)anObject
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ [[NSThread currentThread] setName:ThreadInfo];
+
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(emuWindowDidClose:)
name:@"emuWindowDidClose" object:nil];
@@ -86,6 +90,8 @@ done:
{
NSAutoreleasePool *pool = [NSAutoreleasePool new];
+ [[NSThread currentThread] setName:ThreadInfo];
+
[[NSNotificationCenter defaultCenter] addObserver:self
selector:@selector(emuWindowDidClose:)
name:@"emuWindowDidClose" object:nil];