retain the current process receiver when launching a new thread

upd4.1
Jens Mönig 2017-10-12 19:17:33 +02:00
rodzic ddee221147
commit ec917de0bf
2 zmienionych plików z 2 dodań i 0 usunięć

Wyświetl plik

@ -3700,6 +3700,7 @@ Fixes:
171012
------
* Threads: make sure to retain the current instrument when launching a new thread
* Threads: retain the current receiver when launching a new thread
v4.1 Features:

Wyświetl plik

@ -1165,6 +1165,7 @@ Process.prototype.fork = function (context, args) {
var proc = new Process(),
stage = this.homeContext.receiver.parentThatIsA(StageMorph);
proc.instrument = this.instrument;
proc.receiver = this.receiver;
proc.initializeFor(context, args);
// proc.pushContext('doYield');
stage.threads.processes.push(proc);