Minor fixes
This commit is contained in:
@@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
namespace Nz
|
namespace Nz
|
||||||
{
|
{
|
||||||
SignalHandlerAppComponent::SignalHandlerAppComponent(ApplicationBase& app) :
|
inline SignalHandlerAppComponent::SignalHandlerAppComponent(ApplicationBase& app) :
|
||||||
ApplicationComponent(app)
|
ApplicationComponent(app)
|
||||||
{
|
{
|
||||||
InstallSignalHandler();
|
InstallSignalHandler();
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ namespace Nz::PlatformImpl
|
|||||||
|
|
||||||
void SetCurrentThreadName(const char* threadName)
|
void SetCurrentThreadName(const char* threadName)
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined(NAZARA_COMPILER_MINGW)
|
#if defined(__linux__)
|
||||||
::pthread_setname_np(::pthread_self(), threadName);
|
::pthread_setname_np(::pthread_self(), threadName);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
::pthread_setname_np(threadName);
|
::pthread_setname_np(threadName);
|
||||||
@@ -48,7 +48,7 @@ namespace Nz::PlatformImpl
|
|||||||
|
|
||||||
void SetThreadName(pthread_t threadHandle, const char* threadName)
|
void SetThreadName(pthread_t threadHandle, const char* threadName)
|
||||||
{
|
{
|
||||||
#if defined(__linux__) || defined(NAZARA_COMPILER_MINGW)
|
#if defined(__linux__)
|
||||||
::pthread_setname_np(threadHandle, threadName);
|
::pthread_setname_np(threadHandle, threadName);
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
NazaraWarning("only current thread name can be set on MacOS X");
|
NazaraWarning("only current thread name can be set on MacOS X");
|
||||||
|
|||||||
Reference in New Issue
Block a user