Multi-thread Question in Morph?
Boris.Gaertner at gmx.net
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.
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
The story is continued in the transcript, but, most
exciting, you get a third inspector with the value of the
More information about the Squeak-dev