I have files residing in different directories as follows:
\201603\30
file_1
file_2
\201603\31
file_3
file_4
file_5
There are 2 writers & 2 readers and they are all threads in my program.
Lock will be applied on directory not individual files (e.g. \201603\30 or \201603\31).
I would like to use boost library to make my program portable.
I have searched and been introduced to boost::interprocess::file_lock
. I was just wondering that do I really need an 'interprocess' lock here, and is that lock sharable between readers? Do you have any suggestions other than boost::interprocess::file_lock
?