Open ImmutableOctet opened 6 months ago
This is now implemented for:
SCRIPT_BEGIN
+ SCRIPT_END
EntityThread
instanceScript
object instances passed by rvalue reference (ownership given to bootstrap function)We currently need safety issues like #78 to be resolved, as well as #79 to be completed in order to close this.
start_thread
and start_script
now work with thread ID/name hashes, Script
type as template parameter, and Script
instance as entry-point. Last item would be #78 to close this out.
This would be for both ES and C++ threads. On the C++ side, we could support arbitrary function objects and coroutines/fibers.