Multi-thread Question in Morph?

Boris Gaertner Boris.Gaertner at
Sat Jan 31 22:31:14 UTC 2004

> does anybody has an idea of how I could solve that problem?

Hi again Stef,

here is the hopefully ultimate answer (it works only in Morphic.
MVC does not evaluate expressions that follow the opening of
a view, therefore this will not work in MVC):

1. NewBot new inspect.
2. In the evaluation pane of the inspector evaluate:
  [ | p pHasValue |
     pHasValue := Semaphore new.
    [p := self diamNumber.
      pHasValue signal.] fork inspect.
    pHasValue wait.
    p inspect.
 ] fork

The future tells you that it is waiting and you get
a second inspector, for a process.

3. In the evaluation pane of the new inspector,

self suspendedContext receiver
            value: 9999

The story is continued in the transcript, but, most
exciting, you get a third inspector with the value of the

Greetings, Boris

More information about the Squeak-dev mailing list