[Pharo-project] Implementing a Timer: "newProcessWith: anArray" fails

Igor Stasenko siguctua at gmail.com
Mon Oct 18 08:07:38 EDT 2010


On 18 October 2010 14:55, nullPointer <epicfan at gmail.com> wrote:
>
> Now works :|
>

yes, but probably you found a Cog issue.

>
> pvtStartProcess
>
>        internalProcess := [ self pvtCallProcess: self] fork.
>
>
>
> pvtGetNewProcessBlock
>
>        ^[:timer || intervalDelay |
>
>                [timer enabled] whileTrue:[
>
>                        (Delay forMilliseconds: timer interval) wait.
>
>                        timer enabled ifTrue:[
>
>                                timer raiseOnElapsedTimeForProcessThread: (timer getProcess).
>
>                                WorldState addDeferredUIMessage:[
>                                        timer raiseOnElapsedTimeForUIThread: (timer getProcess)
>                                ].
>                        ]
>                ].
>        ].
>
>
>
> pvtCallProcess: oneParam
>
>        | processBlock |
>
>        processBlock := self pvtGetNewProcessBlock.
>        processBlock value: oneParam.
>
>
> Anyway I understand than the other way must be go. Something I did bad.
>
> Many thanks for the help
>
>
> --
> View this message in context: http://forum.world.st/Implementing-a-Timer-newProcessWith-anArray-fails-tp2999831p3000083.html
> Sent from the Pharo Smalltalk mailing list archive at Nabble.com.
>
> _______________________________________________
> Pharo-project mailing list
> Pharo-project at lists.gforge.inria.fr
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.




More information about the Pharo-dev mailing list