nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Locking (specifically, sequences)


From: Ken Hornstein
Subject: Re: [Nmh-workers] Locking (specifically, sequences)
Date: Mon, 11 Mar 2013 12:06:08 -0400

>i propose that
>the locking fopen function in the MH library be adapted to be willing to
>try the advisory lock three times at one second intervals, on the
>assumption that no writer will hold the lock that long and if there's a
>convoy then we've got bigger problems. (ideally we'd do a wait-lock in a
>thread and kill that thread if it waits too long, but threads would not
>be "the MH way".)

I guess I was thinking in my head of the lock completely blocking, but
you think that having a timeout makes more sense?  I'm neutral on that.
There's not a portable way of having a lock timeout other than loop/sleep,
is there?

--Ken



reply via email to

[Prev in Thread] Current Thread [Next in Thread]