|
From: | Daniel J Sebald |
Subject: | Re: Eliminating Singleton Objects (Re: Coloring error and warning messages in the gui console) |
Date: | Thu, 18 May 2017 23:26:46 -0500 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 |
On 05/18/2017 04:55 PM, Daniel J Sebald wrote:
Maybe a system allowing reference counting in and across both threads can be done, but I thought it better to only let the GUI make immediate copies of data and that is all. Otherwise, maintenance might get too complicated. Stated differently, I think it best if only core in its one thread deal with reference counting.
I suppose a variation on this that wouldn't require the core going into a sleep state would be to have the core copy the result to some mutually shared memory, let the GUI know it is ready, then leave it the responsibility of the GUI to clean up that memory (or the GUI sends an acknowledgement that the memory is no longer needed...that's a bit like garbage collection though, which I suspect isn't desirable).
Dan
[Prev in Thread] | Current Thread | [Next in Thread] |