1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

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

This commit is contained in:
jules 2013-08-13 12:42:40 +01:00
parent c4affa2fb3
commit 71c3ecaf17
4 changed files with 4 additions and 15 deletions

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;

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

View file

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

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 = '/';