kopia lustrzana https://github.com/backface/turtlestitch
Prevent terminated threads from launching new ones
rodzic
aa64ba9149
commit
badd4b81ec
|
@ -4152,3 +4152,7 @@ in development:
|
|||
* Renamed vectorPaint.js to sketch.js
|
||||
* GUI: updated credits for Carles Paredes
|
||||
* "Pixels" library: Enabled multiple references to the same pixel (variable)
|
||||
|
||||
180614
|
||||
------
|
||||
* Threads: Prevent terminated threads from launching new ones
|
||||
|
|
|
@ -62,7 +62,7 @@ StageMorph, SpriteMorph, StagePrompterMorph, Note, modules, isString, copy,
|
|||
isNil, WatcherMorph, List, ListWatcherMorph, alert, console, TableMorph,
|
||||
TableFrameMorph, ColorSlotMorph, isSnapObject*/
|
||||
|
||||
modules.threads = '2018-June-11';
|
||||
modules.threads = '2018-June-14';
|
||||
|
||||
var ThreadManager;
|
||||
var Process;
|
||||
|
@ -1174,6 +1174,7 @@ Process.prototype.evaluate = function (
|
|||
};
|
||||
|
||||
Process.prototype.fork = function (context, args) {
|
||||
if (this.readyToTerminate) {return; }
|
||||
var proc = new Process(),
|
||||
stage = this.homeContext.receiver.parentThatIsA(StageMorph);
|
||||
proc.instrument = this.instrument;
|
||||
|
@ -2695,7 +2696,7 @@ Process.prototype.reportJoinWords = function (aList) {
|
|||
// Process string ops
|
||||
|
||||
Process.prototype.reportLetter = function (idx, string) {
|
||||
var i;
|
||||
var str, i;
|
||||
if (string instanceof List) { // catch a common user error
|
||||
return '';
|
||||
}
|
||||
|
|
Ładowanie…
Reference in New Issue