Block.st
changeset 21314 e4b70f6ab264
parent 21123 431c0e8f2dd8
child 21345 010dc1b3e44d
child 21387 e3865533e6a6
equal deleted inserted replaced
21313:056a82337eda 21314:e4b70f6ab264
   705 
   705 
   706     ^ self on:exceptionClassOrSignal do:handler
   706     ^ self on:exceptionClassOrSignal do:handler
   707 
   707 
   708     "Created: / 28-08-2010 / 14:41:15 / cg"
   708     "Created: / 28-08-2010 / 14:41:15 / cg"
   709 ! !
   709 ! !
       
   710 
   710 
   711 
   711 
   712 
   712 !Block methodsFor:'accessing'!
   713 !Block methodsFor:'accessing'!
   713 
   714 
   714 home
   715 home
  3246 
  3247 
  3247 forkNamed:aString
  3248 forkNamed:aString
  3248     "create a new process, give it a name and let it start
  3249     "create a new process, give it a name and let it start
  3249      executing the receiver at the current priority."
  3250      executing the receiver at the current priority."
  3250 
  3251 
  3251     |newProcess|
  3252     ^ self newProcess
  3252 
  3253         name:aString;
  3253     newProcess := self newProcess.
  3254         resume;
  3254     newProcess name:aString.
  3255         yourself.
  3255     newProcess resume.
  3256 
  3256     ^ newProcess.
  3257     "Modified: / 27-01-2017 / 18:10:16 / stefan"
  3257 !
  3258 !
  3258 
  3259 
  3259 forkWith:argArray
  3260 forkWith:argArray
  3260     "create a new process executing the receiver,
  3261     "create a new process executing the receiver,
  3261      passing elements in argArray as arguments to the receiver block."
  3262      passing elements in argArray as arguments to the receiver block."