From fccb03227e3f541a4c2f4e0e619074e4c1fb55dd Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Tue, 15 Jan 2013 21:13:22 +0000 Subject: Instead of passing separate engine, part and item components to script APIs, pass down IScriptInstance instead. This is to allow the future co-operative script thread terminate feature to detect and act upon termination requests. This splits the assembly and state loading out from the ScriptInstance() constructor to a separate Load() method in order to facilititate continued script logic regression testing. --- prebuild.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'prebuild.xml') diff --git a/prebuild.xml b/prebuild.xml index 4c18aa8..c6bef5c 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -3285,6 +3285,7 @@ + -- cgit v1.1 From 1b5c41c14ad11325be249ea1cce3c65d4d6a89be Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 16 Jan 2013 00:12:40 +0000 Subject: Implement co-operative script termination if termination comes during a script wait event (llSleep(), etc.) This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability. If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread. This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period. Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented. --- prebuild.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'prebuild.xml') diff --git a/prebuild.xml b/prebuild.xml index c6bef5c..abf8f36 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -2417,7 +2417,9 @@ - + + + @@ -3309,6 +3311,7 @@ + -- cgit v1.1 From b8949024bc55c62b9268b35d4f2a568760b9d7d3 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 16 Jan 2013 01:45:09 +0000 Subject: Revert "Implement co-operative script termination if termination comes during a script wait event (llSleep(), etc.)" Doing this as a favour to Melanie. This will be back with passing the wait handles directly to the api. This reverts commit 1b5c41c14ad11325be249ea1cce3c65d4d6a89be. --- prebuild.xml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'prebuild.xml') diff --git a/prebuild.xml b/prebuild.xml index abf8f36..c6bef5c 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -2417,9 +2417,7 @@ - - - + @@ -3311,7 +3309,6 @@ - -- cgit v1.1 From 0963ece25bdef16852f5fd8ae4515a2f05d8b6e4 Mon Sep 17 00:00:00 2001 From: Justin Clark-Casey (justincc) Date: Wed, 16 Jan 2013 02:07:43 +0000 Subject: Implement co-operative script termination if termination comes during a script wait event (llSleep(), etc.) This makes use of EventWaitHandles since various web references indicate that Thread.Interrupt() can also cause runtime instability. If co-op termination is enabled, then termination sets the wait handle instead of waiting for a timeout before possibly aborting the thread. This allows the script to cleanly terminate if it's in a llSleep/LL function delay or the next time it enters such a wait without any timeout period. Co-op termination is not yet testable since checking for termination request within loops that never trigger a wait is not yet implemented. This commit, unlike 1b5c41c, passes the wait handle as an extra parameter through IScript.Initialize() instead of passing IScriptInstance itself. --- prebuild.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'prebuild.xml') diff --git a/prebuild.xml b/prebuild.xml index c6bef5c..abf8f36 100644 --- a/prebuild.xml +++ b/prebuild.xml @@ -2417,7 +2417,9 @@ - + + + @@ -3309,6 +3311,7 @@ + -- cgit v1.1