23 lines
585 B
C++
23 lines
585 B
C++
// Copyright UnexGames 2025. All Rights Reserved.
|
|
#pragma once
|
|
#include "CoreMinimal.h"
|
|
#include "ThreadMutex.generated.h"
|
|
|
|
|
|
UCLASS(BlueprintType, hidecategories = (Object), meta = (DontUseGenericSpawnObject = "true"))
|
|
class MULTITHREADLIBRARY_API UThreadMutex : public UObject
|
|
{
|
|
GENERATED_BODY()
|
|
public:
|
|
UFUNCTION(BlueprintCallable, Category = "MultiThreadLibrary")
|
|
bool TryLock();
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "MultiThreadLibrary")
|
|
void Lock();
|
|
|
|
UFUNCTION(BlueprintCallable, Category = "MultiThreadLibrary")
|
|
void Unlock();
|
|
|
|
public:
|
|
FCriticalSection Section;
|
|
}; |