Browse Source

Re-add juce getPID()

tags/1.9.5
falkTX 11 years ago
parent
commit
53f89fdb53
4 changed files with 17 additions and 0 deletions
  1. +5
    -0
      source/modules/juce_core/native/juce_posix_SharedCode.h
  2. +5
    -0
      source/modules/juce_core/native/juce_win32_Threads.cpp
  3. +5
    -0
      source/modules/juce_core/threads/juce_ChildProcess.cpp
  4. +2
    -0
      source/modules/juce_core/threads/juce_ChildProcess.h

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

@@ -1116,6 +1116,11 @@ public:
return 0;
}
int getPID() const noexcept
{
return childPID;
}
int childPID;
private:


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

@@ -534,6 +534,11 @@ public:
return (uint32) exitCode;
}
int getPID() const noexcept
{
return 0;
}
bool ok;
private:


+ 5
- 0
source/modules/juce_core/threads/juce_ChildProcess.cpp View File

@@ -81,6 +81,11 @@ String ChildProcess::readAllProcessOutput()
return result.toString();
}
uint32 ChildProcess::getPID() const noexcept
{
return activeProcess != nullptr ? activeProcess->getPID() : 0;
}
//==============================================================================
#if JUCE_UNIT_TESTS


+ 2
- 0
source/modules/juce_core/threads/juce_ChildProcess.h View File

@@ -106,6 +106,8 @@ public:
*/
bool kill();
uint32 getPID() const noexcept;
private:
//==============================================================================
class ActiveProcess;


Loading…
Cancel
Save