On 20/11/13 13:46, Kornel Benko wrote:
> I thought about something I programmed in the past.
> Using semaphores on shared memory (over mmap() of file from userdir). But it 
> looked like overkill.

You don't need semaphores over shared memory. The same thing can be achieved by 
the far easier
pthread_mutex in shared memory after setting PTHREAD_PROCESS_SHARED.

On Linux it's ok, but I don't know about portability of this across OSes.

> At least lockf() is :POSIX, and it works.

only 1 note: what will happen if LyX crashes or is terminated abruptly?

        T.

Reply via email to