Cocoa Port: Add thread names for this port's own threads too.
This commit is contained in:
parent
4f8ba2beb9
commit
03b9481095
|
@ -1769,6 +1769,11 @@ CGLPBufferObj OSXOpenGLRendererPBuffer = NULL;
|
|||
|
||||
static void* RunFetchThread(void *arg)
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("Video Fetch");
|
||||
}
|
||||
|
||||
MacClientSharedObject *sharedData = (MacClientSharedObject *)arg;
|
||||
[sharedData runFetchLoop];
|
||||
|
||||
|
|
|
@ -1142,6 +1142,11 @@ volatile bool execute = true;
|
|||
|
||||
static void* RunCoreThread(void *arg)
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("Emulation Core");
|
||||
}
|
||||
|
||||
CoreThreadParam *param = (CoreThreadParam *)arg;
|
||||
CocoaDSCore *cdsCore = (CocoaDSCore *)param->cdsCore;
|
||||
ClientExecutionControl *execControl = [cdsCore execControl];
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
Copyright (C) 2011 Roger Manuel
|
||||
Copyright (C) 2011-2018 DeSmuME team
|
||||
Copyright (C) 2011-2021 DeSmuME team
|
||||
|
||||
This file is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -1314,6 +1314,11 @@
|
|||
|
||||
static void* RunOutputThread(void *arg)
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("EmulationOutput");
|
||||
}
|
||||
|
||||
CocoaDSOutput *cdsDisplayOutput = (CocoaDSOutput *)arg;
|
||||
[cdsDisplayOutput runMessageLoop];
|
||||
|
||||
|
|
|
@ -1463,6 +1463,11 @@ ClientAVCaptureError FFmpegFileStream::WriteOneFrame(const AVStreamWriteParam &p
|
|||
|
||||
static void* RunAVCaptureCloseThread(void *arg)
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("AVCapture Close");
|
||||
}
|
||||
|
||||
/*
|
||||
ClientAVCaptureObject *captureObject = (ClientAVCaptureObject *)arg;
|
||||
FFmpegFileStream *ffmpegFS = (FFmpegFileStream *)captureObject->GetOutputFileStream();
|
||||
|
|
|
@ -131,6 +131,11 @@
|
|||
|
||||
static void* RunFileWriteThread(void *arg)
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("Mac File Write");
|
||||
}
|
||||
|
||||
// Copy the rendering properties from the calling thread.
|
||||
MacCaptureToolParams *inParams = (MacCaptureToolParams *)arg;
|
||||
MacCaptureToolParams param;
|
||||
|
|
|
@ -241,6 +241,11 @@
|
|||
|
||||
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
|
||||
{
|
||||
if (kCFCoreFoundationVersionNumber >= kCFCoreFoundationVersionNumber10_6)
|
||||
{
|
||||
pthread_setname_np("App Main Thread");
|
||||
}
|
||||
|
||||
EmuControllerDelegate *emuControl = (EmuControllerDelegate *)[emuControlController content];
|
||||
|
||||
// Determine if the app was run for the first time.
|
||||
|
|
Loading…
Reference in New Issue