UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RuntimeAssetCacheBucketScopeLock.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreMinimal.h"
7
8/*
9 * Scope lock guarding RuntimeAssetCache bucket metadata critical section.
10 **/
12{
13public:
15 : Bucket(InBucket)
16 {
17 Bucket.MetadataCriticalSection.Lock();
18 }
19
21 {
22 Bucket.MetadataCriticalSection.Unlock();
23 }
24
25private:
28};
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition RuntimeAssetCacheBucketScopeLock.h:12
~FRuntimeAssetCacheBucketScopeLock()
Definition RuntimeAssetCacheBucketScopeLock.h:20
FRuntimeAssetCacheBucketScopeLock(FRuntimeAssetCacheBucket &InBucket)
Definition RuntimeAssetCacheBucketScopeLock.h:14
Definition RuntimeAssetCacheBucket.h:20