I want to make a library of locks like TAS, TTAS, Array lock and etc. So that whenever I want to use a particular lock type I can link that library and use it. But I am not getting a clear idea how to proceed about it?
One way I was thinking about was that creating a Lock.h file and then having different namespaces for different locks in it. But the problem with it is that I can have only one of any particular type since namespaces are object less.