[squeak-dev] Re: Using Semaphores in drawing code

Chris Muller asqueaker at gmail.com
Wed Aug 24 21:49:11 UTC 2016


Okay, that's fine, my broader point just wondering whether that
existing mechanism is sufficient for Marcel's multi-Process situation,
or whether there really is a need to introduce yet another one into
Morphic.

We know it has to be syncrhonized anyway at the bottom, right? -- its
not going to be multitasking in multiple drawing primitives
simultaneously, the synchronization must occur at a higher level, and
there is an existing higher-level mechanism to do that..

On Wed, Aug 24, 2016 at 4:39 PM, David T. Lewis <lewis at mail.msen.com> wrote:
> On Wed, Aug 24, 2016 at 11:21:39AM -0500, Chris Muller wrote:
>> Hi Marcel, if you are talking about introducing some kind of code to
>> guard against someone mis-using Morphic, then, yes, it *is* a relevant
>> point ot the discussion.  You can render your image just as unusable
>> with
>>
>>     String new become: nil
>>
>> but we don't want to guard against that..   If Etoys or Kedama are
>> doing that, shouldn't they be changed to use WorldState
>> addDeferredUIMessage:?  That's the SharedQueue designed to let apps
>> with background processes append operations to be handled by the UI
>> Process..
>
> It is good style to use Project current addDeferredUIMessage: rather
> than WorldState addDeferredUIMessage:
>
> Of course we are talking about Morphic here, but still ...
>
> Dave
>
>


More information about the Squeak-dev mailing list