S
Sriram Rajagopalan
Hi,
Are STL queues thread safe in the scenario below:
I have 2 threads, one pushing to the rear end of the STL queue.. then
posting a semaphore- The other thread waits for the semaphore and would
access the front of the queue. The semaphore is initialized to 0.
Is there a possiblity of race condition in the above scenario?
Thanks,
Sriram.
Are STL queues thread safe in the scenario below:
I have 2 threads, one pushing to the rear end of the STL queue.. then
posting a semaphore- The other thread waits for the semaphore and would
access the front of the queue. The semaphore is initialized to 0.
Is there a possiblity of race condition in the above scenario?
Thanks,
Sriram.