| 521 | } |
| 522 | |
| 523 | void Asset::CancelStreaming() |
| 524 | { |
| 525 | // Cancel loading task but go over asset locker to prevent case if other load threads still loads asset while it's reimported on other thread |
| 526 | Locker.Lock(); |
| 527 | auto loadingTask = (ContentLoadTask*)Platform::AtomicRead(&_loadingTask); |
| 528 | Locker.Unlock(); |
| 529 | if (loadingTask) |
| 530 | { |
| 531 | Platform::AtomicStore(&_loadingTask, 0); |
| 532 | LOG(Warning, "Cancel loading task for \'{0}\'", ToString()); |
| 533 | loadingTask->Cancel(); |
| 534 | } |
| 535 | } |
| 536 | |
| 537 | #if USE_EDITOR |
| 538 |
nothing calls this directly
no test coverage detected