emacs-devel
[Top][All Lists]
Advanced

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

Re: Question: suppress ask-user-about-lock?


From: Qiantan Hong
Subject: Re: Question: suppress ask-user-about-lock?
Date: Wed, 8 Dec 2021 20:12:49 +0000

> On Dec 8, 2021, at 12:04 PM, Eli Zaretskii <eliz@gnu.org> wrote:
> 
>> From: Qiantan Hong <qhong@mit.edu>
>> Date: Wed, 8 Dec 2021 19:22:44 +0000
>> Cc: "emacs-devel@gnu.org" <emacs-devel@gnu.org>
>> 
>> No, I mean it should signal ‘file-locked without asking the user
>> (through ask-user-about-lock).
>> I intended to use it as a mutex in Elisp program.
> 
> But we already have mutexes in Emacs, so why not use the real thing?
> What am I missing?
I’m using it to lock a key value store file when writing to it,
so Emacsen have mutual exclusive write access to it.

Seems that “mutex" usually refers to a particular kind of
intraprocess mutual exclusive lock, I apologize for the confusion.
I’m referring to something similar to flock(2).

reply via email to

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