projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git]
/
src
/
sandbox
/
win
/
sandbox_poc
/
pocdll
/
invasive.cc
diff --git
a/src/sandbox/win/sandbox_poc/pocdll/invasive.cc
b/src/sandbox/win/sandbox_poc/pocdll/invasive.cc
index
df36612
..
9ee13b0
100644
(file)
--- a/
src/sandbox/win/sandbox_poc/pocdll/invasive.cc
+++ b/
src/sandbox/win/sandbox_poc/pocdll/invasive.cc
@@
-35,11
+35,11
@@
void POCDLL_API TestThreadBombing(HANDLE log) {
0, // No creation flags
&tid);
if (thread) {
0, // No creation flags
&tid);
if (thread) {
- fprintf(output, "[GRANTED] Creating thread with tid 0x%X\r\n", tid);
+ fprintf(output, "[GRANTED] Creating thread with tid 0x%
l
X\r\n", tid);
::CloseHandle(thread);
number_errors = 0;
} else {
::CloseHandle(thread);
number_errors = 0;
} else {
- fprintf(output, "[BLOCKED] Creating thread. Error %d\r\n",
+ fprintf(output, "[BLOCKED] Creating thread. Error %
l
d\r\n",
::GetLastError());
number_errors++;
}
::GetLastError());
number_errors++;
}
@@
-90,10
+90,10
@@
void POCDLL_API TestTakeAllCpu(HANDLE log) {
::SetThreadAffinityMask(thread, affinity_mask);
if (::SetThreadPriority(thread, REALTIME_PRIORITY_CLASS)) {
::SetThreadAffinityMask(thread, affinity_mask);
if (::SetThreadPriority(thread, REALTIME_PRIORITY_CLASS)) {
- fprintf(output, "[GRANTED] Set thread(%d) priority to Realtime\r\n",
+ fprintf(output, "[GRANTED] Set thread(%
l
d) priority to Realtime\r\n",
tid);
} else {
tid);
} else {
- fprintf(output, "[BLOCKED] Set thread(%d) priority to Realtime\r\n",
+ fprintf(output, "[BLOCKED] Set thread(%
l
d) priority to Realtime\r\n",
tid);
}
tid);
}
@@
-103,7
+103,7
@@
void POCDLL_API TestTakeAllCpu(HANDLE log) {
system_mask = system_mask >> 1;
}
} else {
system_mask = system_mask >> 1;
}
} else {
- fprintf(output, "[ERROR] Cannot get affinity mask. Error %d\r\n",
+ fprintf(output, "[ERROR] Cannot get affinity mask. Error %
l
d\r\n",
::GetLastError());
}
}
::GetLastError());
}
}