Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Romain committed Aug 28, 2024
1 parent 6b41376 commit 3d6a41d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/lidRviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,10 +185,8 @@ void sdl_loop(DataFrame df, std::string hnof)
void viewer(DataFrame df, std::string hnof)
{
if (running) Rcpp::stop("lidRviewer is limited to one rendering point cloud");
sdl_loop(df, hnof);
//sdl_thread = std::thread(sdl_loop, df, hnof);
//sdl_thread.detach(); // Detach the thread to allow it to run independently

sdl_thread = std::thread(sdl_loop, df, hnof);
sdl_thread.detach(); // Detach the thread to allow it to run independently
running = true;
}

Expand Down

0 comments on commit 3d6a41d

Please sign in to comment.