kopia lustrzana https://github.com/backface/turtlestitch
retain the current process receiver when launching a new thread
rodzic
ddee221147
commit
ec917de0bf
|
|
@ -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:
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue