octave-maintainers
[Top][All Lists]
Advanced

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

Re: [PATCH] Thread-safe graphics manager


From: Maciek Gajewski
Subject: Re: [PATCH] Thread-safe graphics manager
Date: Sat, 5 Jul 2008 11:59:27 +0200
User-agent: KMail/1.9.9

Michael Goffioul wrote:
> Do you really need to add locking at all these places? Isn't it enough
> to add locking at the entry-point the user has access to, meaning the
> DEFUN_DLD functions? In any case, octave will access the graphics
> system through one of these function, right?

Yes and no. Indeed, all user interaction goes through DEFUN_DLD functions, 
but:
- something may be called by function registered with input_event_hook,
- something may be called by multi-threaded backend from different thread.

Of course in both cases programmer should be aware of locking problem and lock 
explicitly, but since locks came out to be cheap, I've added them whenever 
they seemed useful.

Maciek Gajewski


reply via email to

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