Update of /cvsroot/playerstage/code/player/server/drivers/mixed/rflex
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28922/server/drivers/mixed/rflex
Modified Files:
Tag: release-1-6-5-patches
rflex.cc rflex_commands.cc
Log Message:
applied patch to fix busy loopo in rflex
Index: rflex_commands.cc
===================================================================
RCS file:
/cvsroot/playerstage/code/player/server/drivers/mixed/rflex/rflex_commands.cc,v
retrieving revision 1.19
retrieving revision 1.19.6.1
diff -C2 -d -r1.19 -r1.19.6.1
*** rflex_commands.cc 17 Nov 2004 22:00:28 -0000 1.19
--- rflex_commands.cc 30 May 2006 22:52:44 -0000 1.19.6.1
***************
*** 163,166 ****
--- 163,168 ----
start = now;
count = (now.tv_sec - start.tv_sec) * 1000000 + (now.tv_usec -
start.tv_usec);
+ // release somewhat so other threads can run.
+ usleep(500);
} while (count < 10000);
Index: rflex.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/server/drivers/mixed/rflex/rflex.cc,v
retrieving revision 1.21
retrieving revision 1.21.6.1
diff -C2 -d -r1.21 -r1.21.6.1
*** rflex.cc 7 Dec 2004 22:08:54 -0000 1.21
--- rflex.cc 30 May 2006 22:52:43 -0000 1.21.6.1
***************
*** 1215,1218 ****
--- 1215,1221 ----
pthread_testcancel();
+
+ // release cpu somewhat so other threads can run.
+ usleep(1000);
}
pthread_exit(NULL);
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=107521&bid=248729&dat=121642
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit