![]() |
Show Changes |
![]() |
|
![]() |
Recent Changes |
![]() |
Subscriptions |
![]() |
Lost and Found |
![]() |
Find References |
![]() |
Rename |
![]() |
Administration Page |
![]() |
Topic Locks |
| Search |
History
| 12/19/2008 11:19:37 AM |
| -71.112.6.89 |
| 12/18/2008 12:00:44 PM |
| -98.247.137.70 |
| 12/18/2008 11:47:00 AM |
| -98.247.137.70 |
| 7/8/2008 4:47:44 PM |
| -91.149.37.227 |
| 4/28/2008 2:21:35 PM |
| -90.224.58.148 |
![]() |
List all versions |
This patch adds the ability to interrpt or suspend a long running script. If suspended, the script can be resumed with standard API at a later point.
One can also do some application work (like driving a C++ GUI) inside the app QuerySuspend function.
Diff file (against Squirrel 2.5 work sources): QuerySuspend.p0
Source files: QuerySuspend.zip
How to use:
int SQMyQuerySuspend( SQVM *vm ){
if( /* too long time */ ){
return SQ_QUERY_BREAK;
// or return SQ_QUERY_SUSPEND;
}
/* Do some processing / nothing */
return SQ_QUERY_CONTINUE;
}
// In init section
SQVM *vm = /* from somewhere */;
vm->SetQuerySuspendFn( SQMyQuerySuspend );
// ... continue