| 1168 | |
| 1169 | |
| 1170 | int asCContext::Abort() |
| 1171 | { |
| 1172 | if( m_engine == 0 ) return asERROR; |
| 1173 | |
| 1174 | // TODO: multithread: Make thread safe. There is a chance that the status |
| 1175 | // changes to something else after being set to ABORTED here. |
| 1176 | if( m_status == asEXECUTION_SUSPENDED ) |
| 1177 | m_status = asEXECUTION_ABORTED; |
| 1178 | |
| 1179 | m_doSuspend = true; |
| 1180 | m_regs.doProcessSuspend = true; |
| 1181 | m_externalSuspendRequest = true; |
| 1182 | m_doAbort = true; |
| 1183 | |
| 1184 | return 0; |
| 1185 | } |
| 1186 | |
| 1187 | // interface |
| 1188 | int asCContext::Suspend() |
no outgoing calls
no test coverage detected