Otherwise, the execution control inside the
Python for S60 application could not be reachedwhen control is given to the underlying
phone service. The Python adaptation to Symbian automatically handled part of this
thread management, but depending on the application logic, the Python programmer
also needed to take care of concurrency by using the API commands available fromthe
library. In the DSM solution, setting wait locks and releasing them in the correct
manner was handled with the framework code. The code calling the concurrency
library was put into the generator so the modeler did not need to think about it.
The connection between the framework code and the generated code could be
established in many different ways. The framework code could be implemented in a
184 MOBILE PHONE APPLICATIONS USING A PYTHON FRAMEWORK
library and called during generation. Further, the library could be part of the function
library available in the modeling tool or saved to external ?¬?les. To make generation
safe and easy, the framework code was put into the generator. This way, the user would
not be responsible for ?¬?nding the correct function or need to take care that the external
?¬?les containing the framework code were available for the generator.
8.7 MAIN RESULTS
The DSM language and generator were created to make development fundamentally
easier and faster.
Pages:
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344