Browse Source

Merged non-Windows implementations of Process::terminate, and made it call std::terminate()

tags/2021-05-28
jules 12 years ago
parent
commit
71c3ecaf17
4 changed files with 4 additions and 15 deletions
  1. +0
    -5
      modules/juce_core/native/juce_android_Threads.cpp
  2. +0
    -5
      modules/juce_core/native/juce_linux_Threads.cpp
  3. +0
    -5
      modules/juce_core/native/juce_mac_Threads.mm
  4. +4
    -0
      modules/juce_core/native/juce_posix_SharedCode.h

+ 0
- 5
modules/juce_core/native/juce_android_Threads.cpp View File

@@ -62,11 +62,6 @@ void Process::setPriority (ProcessPriority prior)
pthread_setschedparam (pthread_self(), policy, &param);
}
void Process::terminate()
{
std::exit (EXIT_FAILURE);
}
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
{
return false;


+ 0
- 5
modules/juce_core/native/juce_linux_Threads.cpp View File

@@ -52,11 +52,6 @@ void Process::setPriority (const ProcessPriority prior)
pthread_setschedparam (pthread_self(), policy, &param);
}
void Process::terminate()
{
std::exit (EXIT_FAILURE);
}
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
{
#if JUCE_BSD


+ 0
- 5
modules/juce_core/native/juce_mac_Threads.mm View File

@@ -65,11 +65,6 @@ void Process::lowerPrivilege()
jassertfalse;
}
void Process::terminate()
{
std::exit (EXIT_FAILURE);
}
void Process::setPriority (ProcessPriority)
{
// xxx


+ 4
- 0
modules/juce_core/native/juce_posix_SharedCode.h View File

@@ -150,6 +150,10 @@ void JUCE_CALLTYPE Thread::sleep (int millisecs)
nanosleep (&time, nullptr);
}
void Process::terminate()
{
std::terminate();
}
//==============================================================================
const juce_wchar File::separator = '/';


Loading…
Cancel
Save