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:
parent
c4affa2fb3
commit
71c3ecaf17
4 changed files with 4 additions and 15 deletions
|
|
@ -62,11 +62,6 @@ void Process::setPriority (ProcessPriority prior)
|
|||
pthread_setschedparam (pthread_self(), policy, ¶m);
|
||||
}
|
||||
|
||||
void Process::terminate()
|
||||
{
|
||||
std::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
|
||||
{
|
||||
return false;
|
||||
|
|
|
|||
|
|
@ -52,11 +52,6 @@ void Process::setPriority (const ProcessPriority prior)
|
|||
pthread_setschedparam (pthread_self(), policy, ¶m);
|
||||
}
|
||||
|
||||
void Process::terminate()
|
||||
{
|
||||
std::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
JUCE_API bool JUCE_CALLTYPE juce_isRunningUnderDebugger()
|
||||
{
|
||||
#if JUCE_BSD
|
||||
|
|
|
|||
|
|
@ -65,11 +65,6 @@ void Process::lowerPrivilege()
|
|||
jassertfalse;
|
||||
}
|
||||
|
||||
void Process::terminate()
|
||||
{
|
||||
std::exit (EXIT_FAILURE);
|
||||
}
|
||||
|
||||
void Process::setPriority (ProcessPriority)
|
||||
{
|
||||
// xxx
|
||||
|
|
|
|||
|
|
@ -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…
Add table
Add a link
Reference in a new issue