non-blocking http
All checks were successful
CI / React UI Build (push) Successful in 11s
CI / Native Windows Build And Tests (push) Successful in 2m58s
CI / Windows Release Package (push) Has been skipped

This commit is contained in:
Aiden
2026-05-12 15:05:54 +10:00
parent 95b4a54326
commit c5fd8e72b4
4 changed files with 57 additions and 8 deletions

View File

@@ -21,7 +21,9 @@ public:
void Start(const std::string& shaderId, ArtifactCallback onArtifactReady, ErrorCallback onError);
void Start(const std::string& layerId, const std::string& shaderId, ArtifactCallback onArtifactReady, ErrorCallback onError);
void RequestStop();
void Stop();
bool CanStopWithoutWaiting() const;
private:
void ThreadMain();
@@ -29,6 +31,7 @@ private:
RuntimeSlangShaderCompiler mCompiler;
std::thread mThread;
std::atomic<bool> mStopping{ false };
std::atomic<bool> mFinished{ true };
std::string mLayerId;
ArtifactCallback mOnArtifactReady;
ErrorCallback mOnError;