Skip to content

Commit 52544bb

Browse files
committed
Minor changes
1 parent 2d6b473 commit 52544bb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1572,10 +1572,10 @@ TEST_SUITE("Detours::Hook") {
15721572
}
15731573

15741574
DWORD WINAPI ThreadAccesserLoop(LPVOID lpParameter) {
1575-
while ((rand() % 10000) != 9999) {
1576-
//for (unsigned int i = 0; i < 1'000'000; ++i) {
1577-
// _mm_pause();
1578-
//}
1575+
while ((rand() % 100) != 99) {
1576+
for (unsigned int i = 0; i < 1'000'000; ++i) {
1577+
_mm_pause();
1578+
}
15791579

15801580
reinterpret_cast<unsigned int*>(lpParameter)[0] = 4;
15811581
}

0 commit comments

Comments
 (0)