non-blocking http
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user