Skip to content

Commit

Permalink
Using std::recursive_mutex for all platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
marek-simonik authored Dec 25, 2020
1 parent 4519f9d commit 53b4824
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/DemoMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,7 @@ class Record3DDemoApp
}

private:
#if WIN32
std::recursive_mutex mainThreadLock_{};
#else
std::mutex mainThreadLock_{};
#endif

#ifdef HAS_OPENCV
cv::Mat imgRGB_ = cv::Mat::zeros(Record3D::Record3DStream::MAXIMUM_FRAME_HEIGHT, Record3D::Record3DStream::MAXIMUM_FRAME_WIDTH, CV_8UC3);;
Expand All @@ -147,4 +143,4 @@ int main()
app.Run();
}

#pragma clang diagnostic pop
#pragma clang diagnostic pop

0 comments on commit 53b4824

Please sign in to comment.