Re: PRLock and PRRWLock
Wan-Teh Chang <[email protected]> Tue, 27 Jan 2009 12:00:17 -0800
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jan 26, 2009 at 10:32 PM, Sabyasachi Ruj <[email protected]> wrote: > Thanks Wan, for that idea. > Is it possible to build time out based Reader/Writer lock with PRCondVar? Yes, it's possible. With PRLock and PRCondVar as the primitives, you can build any synchronization object with the properties you like. It will take some thought and practice though. Wan-Teh