Diff of /sandbox/jlf/trunk/interpreter/platform/windows/SysActivity.cpp [r7646] .. [r7647]  Maximize  Restore

Switch to side-by-side view

--- a/sandbox/jlf/trunk/interpreter/platform/windows/SysActivity.cpp
+++ b/sandbox/jlf/trunk/interpreter/platform/windows/SysActivity.cpp
@@ -131,3 +131,18 @@
     size_t temp;
     return(char *)&temp - stackSize;
 }
+
+
+wholenumber_t yieldCount = 0; // Monitoring
+
+void SysActivity::yield()
+{
+    yieldCount += 1;
+    // just give up the time slice
+    Sleep(0);
+}
+
+wholenumber_t SysActivity::yieldCounter()
+{
+    return yieldCount;
+}

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks