mirror of
https://github.com/wolfpld/tracy.git
synced 2026-10-22 16:50:49 +00:00
Wait for background reconstruction before exporting plots.
This commit is contained in:
@@ -516,6 +516,11 @@ int main(int argc, char** argv)
|
||||
|
||||
if(args.plot && args.unwrap)
|
||||
{
|
||||
while (!worker.IsBackgroundDone())
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(10));
|
||||
}
|
||||
std::lock_guard<std::mutex> lock(worker.GetDataLock());
|
||||
auto& plots = worker.GetPlots();
|
||||
for(const auto& plot : plots)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user