Linked by Thom Holwerda on Fri 7th Sep 2007 19:38 UTC, submitted by koki
Thread beginning with comment 269758
To view parent comment, click here.
To read all comments associated with this story, please click here.
To view parent comment, click here.
To read all comments associated with this story, please click here.
I'm not familiar with the BeOS api, but if they are indeed the same locks as in his example (lock A and lock B), his proposed solution wouldn't even work and would deadlock too.
Actually they wouldn't, they're recursive locks. The way he demonstrates is in fact the way it works when you're working with that API.





Member since:
2005-08-29
The message queues share the window lock in BeOS. Those are implicitly there as Lock A and B in his example, and are taken care of for you by the API in this case.
I'm not familiar with the BeOS api, but if they are indeed the same locks as in his example (lock A and lock B), his proposed solution wouldn't even work and would deadlock too.