Add Thread.blockContainer

Store the thread's blocks at blockContainer letting execute quickly
determine the block source. Monitor threads are a monitor thread. They
do not become a target thread suddenly.
This commit is contained in:
Michael "Z" Goddard 2018-01-24 14:56:02 -05:00
parent ab8d8e5f34
commit 4286e3e982
No known key found for this signature in database
GPG key ID: 762CD40DD5349872
4 changed files with 13 additions and 7 deletions

View file

@ -91,7 +91,8 @@ const generateThread = function (runtime) {
rt.blocks.createBlock(generateBlock(next));
th.pushStack(next);
th.target = rt;
th.blockContainer = rt.blocks;
runtime.threads.push(th);
return th;