[squeak-dev] Alternate BlockContext>>forkAt: for Andreas, was #fork and deterministic resumption of the resulting process

Igor Stasenko siguctua at gmail.com
Sun Mar 2 19:17:55 UTC 2008


Oh.. and for those, who may wants use new process instance:

 BlockContext>>forkAfterInitWith: aBlock
  | proc |
  proc := self newProcess.
  aBlock value: proc.
  proc resume.
  ^ nil
---
so, you can write:

[ ....] forkAfterInitWith: [:process | process priority: 100. process
name: 'my forked process' ].


-- 
Best regards,
Igor Stasenko AKA sig.



More information about the Squeak-dev mailing list