As you can figure out in the codes above, what I have to accomplish is to let one thread conditionally free the object on which the other two may block. By using our site, you acknowledge that you have read and understand our Cookie Policy , Privacy Policy , and our Terms of Service. The reason I'm reluctant to put it this way is that I'd like multiple threads to access nodes, which are in the list and have been referred previously in threads' context anyhow, without performing iteration every time on the list. Sign up or log in Sign up using Google. Lundin Lundin k 17 17 gold badges silver badges bronze badges. How do we handle problem users? Z Nothing prevents several threads from accessing individual nodes, that's why the lock is there.
Uploader: | Gull |
Date Added: | 22 July 2009 |
File Size: | 54.7 Mb |
Operating Systems: | Windows NT/2000/XP/2003/2003/7/8/10 MacOS 10/X |
Downloads: | 54343 |
Price: | Free* [*Free Regsitration Required] |
Subscribe to RSS
By applying initialzesrwlock solution it means that there must be a list of locks accordingly, each lock for an object and moreover, when a certain object is set free, its lock must be set free at the same time. You may have to register or Login before you can post: Z Oct 7 '11 at Results 1 to 3 of 3.
Developing Multithreaded Applications Slow Chat: So might there be something in a header file somewhere which would over-ride the project setting and thereby cause warnings to get treated as errors? By using our site, you initializserwlock that you have read and understand our Cookie PolicyPrivacy Policyand our Terms of Service. Many years ago I'd previously built it with VS which built okay and I'm now trying it on a machine which happens to have VS installed.
David d C e Freitas David d C e Freitas 3, 3 3 gold badges 20 20 silver badges 27 27 bronze badges. Your program will not compile on a C compiler.
The reason I'm reluctant to put it this way is that I'd like multiple threads to access nodes, which are in the initiallzesrwlock and have been referred previously in threads' context anyhow, without performing iteration every time on the list.
Unicorn Meta Zoo 9: All advice is offered in good faith only. The best answers are voted up initializezrwlock rise to the top. I can't find any other project where I've needed to set this myself.
Codes above are obviously inktializesrwlock because if object is set free along with the lock, all blocking threads give us nowhere but wrong. Post as a guest Name.
c - Using Windows slim read/write lock - Stack Overflow
Your are right and now the only way seems to let threads block on manipulation of list rather than individual nodes. Home Questions Tags Users Unanswered. According to David D C e Freitas. This compensation may impact how and where products appear on this site initializesdwlock, for example, the order in which they appear.
Post as a guest Name. Sign up using Email and Password. Hi 2kaud - I'm building an open-source cross-platform library called Glib.
Sign up using Facebook. Anything I post, code snippets, advice, etc is licensed as Public Domain https: Email Required, but never shown.
Now I wonder if there is an alternative solution to this. Stack Overflow works best with JavaScript enabled. Sign up using Facebook. Active 7 years, 11 months ago. Z 1 1 initializesrwlok badge 5 5 silver badges 14 14 bronze badges.
However, I'm a bit puzzled Well, I find that I have no reputation to send multiple url links to. Available for download from the Archive.
No comments:
Post a Comment