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;
|
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 void chdir_to_data_dir();
|
||||||
extern bool is_remote_desktop();
|
extern bool is_remote_desktop();
|
||||||
|
|
||||||
|
|
|
@ -418,7 +418,7 @@ void TASK::kill() {
|
||||||
|
|
||||||
void TASK::stop() {
|
void TASK::stop() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
suspend_or_resume_threads(pid, false);
|
suspend_or_resume_threads(pid, 0, false);
|
||||||
#else
|
#else
|
||||||
::kill(pid, SIGSTOP);
|
::kill(pid, SIGSTOP);
|
||||||
#endif
|
#endif
|
||||||
|
@ -427,7 +427,7 @@ void TASK::stop() {
|
||||||
|
|
||||||
void TASK::resume() {
|
void TASK::resume() {
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
suspend_or_resume_threads(pid, true);
|
suspend_or_resume_threads(pid, 0, true);
|
||||||
#else
|
#else
|
||||||
::kill(pid, SIGCONT);
|
::kill(pid, SIGCONT);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue