cesium-native
0.41.0
|
An interface representing the depot that owns a SharedAsset. This interface is an implementation detail of the shared asset system and should not be used directly. More...
#include <CesiumUtility/IDepotOwningAsset.h>
Public Member Functions | |
virtual void | markDeletionCandidate (const TAssetType &asset, bool threadOwnsDepotLock)=0 |
Marks the given asset as a candidate for deletion. Should only be called by SharedAsset. May be called from any thread. More... | |
virtual void | unmarkDeletionCandidate (const TAssetType &asset, bool threadOwnsDepotLock)=0 |
Unmarks the given asset as a candidate for deletion. Should only be called by SharedAsset. May be called from any thread. More... | |
An interface representing the depot that owns a SharedAsset. This interface is an implementation detail of the shared asset system and should not be used directly.
SharedAsset has a pointer to the asset depot that owns it using this interface, rather than a complete CesiumAsync::SharedAssetDepot, in order to "erase" the type of the asset key. This allows SharedAsset to be templatized only on the asset type, not on the asset key type.
Definition at line 15 of file IDepotOwningAsset.h.
|
pure virtual |
Marks the given asset as a candidate for deletion. Should only be called by SharedAsset. May be called from any thread.
asset | The asset to mark for deletion. |
threadOwnsDepotLock | True if the calling thread already owns the depot lock; otherwise, false. |
|
pure virtual |
Unmarks the given asset as a candidate for deletion. Should only be called by SharedAsset. May be called from any thread.
asset | The asset to unmark for deletion. |
threadOwnsDepotLock | True if the calling thread already owns the depot lock; otherwise, false. |