svn path=/trunk/boinc/; revision=20055

This commit is contained in:
David Anderson 2010-01-01 05:03:13 +00:00
parent d5a8f6f1e1
commit 9e1644e588
2 changed files with 3 additions and 3 deletions

View File

@ -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();

View File

@ -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