mirror of https://github.com/BOINC/boinc.git
svn path=/trunk/boinc/; revision=20055
This commit is contained in:
parent
d5a8f6f1e1
commit
9e1644e588
|
@ -46,7 +46,7 @@ inline std::string W2A(const std::wstring& str) {
|
|||
return result;
|
||||
}
|
||||
|
||||
extern int suspend_or_resume_threads(DWORD pid, bool resume);
|
||||
extern int suspend_or_resume_threads(DWORD pid, DWORD threadid, bool resume);
|
||||
extern void chdir_to_data_dir();
|
||||
extern bool is_remote_desktop();
|
||||
|
||||
|
|
|
@ -418,7 +418,7 @@ void TASK::kill() {
|
|||
|
||||
void TASK::stop() {
|
||||
#ifdef _WIN32
|
||||
suspend_or_resume_threads(pid, false);
|
||||
suspend_or_resume_threads(pid, 0, false);
|
||||
#else
|
||||
::kill(pid, SIGSTOP);
|
||||
#endif
|
||||
|
@ -427,7 +427,7 @@ void TASK::stop() {
|
|||
|
||||
void TASK::resume() {
|
||||
#ifdef _WIN32
|
||||
suspend_or_resume_threads(pid, true);
|
||||
suspend_or_resume_threads(pid, 0, true);
|
||||
#else
|
||||
::kill(pid, SIGCONT);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue