I want to have two different classes accessing to a shared array with mutex protected. One class writing into the array and the other reading from the array if there is an element in the array. What are the possible ways of such implementation in C++?
Thanks