X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/80fdcdb90ef779185492dab676d461fc34933312..038c99477c8cd14013cef892517012717c47df35:/src/common/process.cpp diff --git a/src/common/process.cpp b/src/common/process.cpp index 210068e955..0e09eb7506 100644 --- a/src/common/process.cpp +++ b/src/common/process.cpp @@ -50,6 +50,7 @@ void wxProcess::Init(wxEvtHandler *parent, int id, int flags) m_id = id; m_pid = 0; + m_priority = wxPRIORITY_DEFAULT; m_redirect = (flags & wxPROCESS_REDIRECT) != 0; #if wxUSE_STREAMS @@ -176,3 +177,10 @@ bool wxProcess::Exists(int pid) } } +void wxProcess::SetPriority(unsigned priority) +{ + wxCHECK_RET( priority <= wxPRIORITY_MAX, + wxS("Invalid process priority value.") ); + + m_priority = priority; +}