Revision: 76826
http://sourceforge.net/p/brlcad/code/76826
Author: starseeker
Date: 2020-08-18 12:21:16 +0000 (Tue, 18 Aug 2020)
Log Message:
-----------
Throttle the event checking a bit to try and avoid an all-out hot spin waiting
for output.
Modified Paths:
--------------
brlcad/trunk/src/mged/mged.c
Modified: brlcad/trunk/src/mged/mged.c
===================================================================
--- brlcad/trunk/src/mged/mged.c 2020-08-18 11:56:49 UTC (rev 76825)
+++ brlcad/trunk/src/mged/mged.c 2020-08-18 12:21:16 UTC (rev 76826)
@@ -1574,6 +1574,8 @@
Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT);
while (BU_PTBL_LEN(&GEDP->ged_subp)) {
Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT);
+ // Limit CPU burn in case of long running subcommands
+ Tcl_Sleep(1);
}
Tcl_DoOneEvent(TCL_ALL_EVENTS|TCL_DONT_WAIT);
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
BRL-CAD Source Commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-commits