| 691 | } |
| 692 | |
| 693 | void Asset::onUnload_MainThread() |
| 694 | { |
| 695 | // Note: asset should not be locked now (Locker should be free) so other thread won't be locked. |
| 696 | |
| 697 | ASSERT(IsInMainThread()); |
| 698 | |
| 699 | // Cancel any streaming before calling OnUnloaded event |
| 700 | CancelStreaming(); |
| 701 | |
| 702 | // Send event |
| 703 | ScopeLock lock(_referencesLocker); |
| 704 | for (const auto& e : _references) |
| 705 | e.Item->OnAssetUnloaded(this, this); |
| 706 | OnUnloaded(this); |
| 707 | } |
| 708 | |
| 709 | bool Asset::WaitForInitGraphics() |
| 710 | { |
nothing calls this directly
no test coverage detected