Re: PRLock and PRRWLock

Benjamin Smedberg <[email protected]> Thu, 22 Jan 2009 09:40:22 -0500
Newsgroups gmane.comp.mozilla.devel.nspr
Message-ID <[email protected]>
On 1/22/09 9:07 AM, Sabyasachi Ruj wrote:

> Actually I am doing some SQLite operation inside a lock, and sometimes that
> take long time to complete, if the database is large (~1.9 GB).
> I want to come up with error to the user that time, if acquiring lock fails.
> Please help.

You don't want to be using a lock. You want to be using a monitor. See prmon.h

--BDS