I have a question regarding boost object's threding safe in Windows. I have a test class which keeps track of a buffer pointer in the shared memory object. I find its behavior sometime is not predictive. In most cases it runs fine. Some times it throw exception. Especially when I used it in a large program. My question is, the buffer pointer which is obtained during the class instantiation will out of scope? especially in an multi-threading program? Here is the test class X and the test program....
I have a question regarding boost object's threding safe in Windows. I have a test class which keeps track of a buffer pointer in the shared memory object. I find its behavior sometime is not predictive. In most cases it runs fine. Some times it throw exception. Especially when I used it in a large program. My question is, the buffer pointer which is obtained during the class instantiation will out of scope? especially in an multi-threading program? Here is the test class X and the test program....