Today we are going to look in detail at how to make a data structure thread-safe.
Links:
GitHub Invitation URL: exercise23
Steps:
vector.hpp
empty file, implement your thread-safe generic vector heretest_vector.cpp
empty file, write some tests for `vector.hpp
hereImplement a generic vector that is thread-safe in vector.hpp
using C++11 synchronization primitives similar the the thread-safe queue.
Write some tests for your vector in test_vector.cpp
using C++11 threads.
Verify your code compiles and your tests work.
Now, use git to commit the source files changed to the local repository.
Finally, use git push to synchronize the repository with that on GitHub.
You have completed the Exercise.