--- a/kerneltest/e32test/thread/smpsafe.cpp Tue Jan 19 13:48:03 2010 +0000
+++ b/kerneltest/e32test/thread/smpsafe.cpp Mon Jan 18 21:31:10 2010 +0200
@@ -86,6 +86,7 @@
t.SetPriority(EPriorityLess);
t.Resume();
+ TInt a = 1;
for (TInt i = KLoopTries; i>0; --i)
{
Affinity = 1; // assume we are locked to a single cpu
@@ -95,7 +96,8 @@
{
// spin, waiting to see if the other thread actually *does* run
}
- if (Affinity == 0)
+ a = Affinity;
+ if (a == 0)
break;
Stop.Wait(); // We didn't see it this time, but try again in case of scheduling fluke
}
@@ -104,7 +106,7 @@
User::WaitForRequest(s);
t.Close();
- return Affinity;
+ return a;
}
#ifndef OMIT_MAIN