refactored moo_execute() by taking process switcher out to a separate inline function

This commit is contained in:
hyunghwan.chung
2017-02-11 05:48:30 +00:00
parent 7384777b59
commit 2c8eb87408
8 changed files with 208 additions and 129 deletions

View File

@ -329,6 +329,23 @@ class MyObject(Object)
Processor sleepFor: 20.
}
(*
#method(#class) main
{
| event |
Timer fire: [ 'Timer job' dump. ] in: 3000.
GUI on: #XXX do: [:evt | ... ].
GUI on: #YYYY do: [:evt | ... ].
while (true)
{
event := GUI waitForEvent.
GUI dispatchEvent: event.
}
}*)
}
(*