Skip to content

Commit

Permalink
shared rw mut for inplace image updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kuro337 committed Jan 20, 2024
1 parent 8491fee commit a508b9e
Show file tree
Hide file tree
Showing 3 changed files with 210 additions and 98 deletions.
12 changes: 12 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ endif()
enable_testing()

add_executable(ocr_test tests/ocr_test.cc)
add_executable(atomic_test tests/atomic_test.cc)
add_executable(similarity_test tests/similarity_test.cc)
add_executable(cache_benchmark benchmarks/cache_benchmark.cc)

Expand Down Expand Up @@ -99,17 +100,28 @@ target_link_libraries(
PUBLIC Folly::folly
)

target_link_libraries(
atomic_test
PUBLIC GTest::gtest_main
PUBLIC ${CURL_LIBRARIES}
PUBLIC ${OpenCV_LIBS}
PUBLIC OpenSSL::Crypto
PUBLIC tesseract
PUBLIC Folly::folly
)


include(GoogleTest)
gtest_discover_tests(ocr_test)
gtest_discover_tests(similarity_test)
gtest_discover_tests(atomic_test)


if(OpenMP_CXX_FOUND)
message(STATUS "Using OpenMP")
target_link_libraries(ocr_test PUBLIC OpenMP::OpenMP_CXX)
target_link_libraries(similarity_test PUBLIC OpenMP::OpenMP_CXX)
target_link_libraries(atomic_test PUBLIC OpenMP::OpenMP_CXX)
else()
message(STATUS "OpenMP not found")

Expand Down
8 changes: 8 additions & 0 deletions tests/atomic_test.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/*
Need to use a SharedMutex for frequent Reads and Infrequent Writes to the Image
*/
Loading

0 comments on commit a508b9e

Please sign in to comment.