On 09/28/2010 07:31 AM, Bo Berglund wrote:
  What do you think?

Creating a new portable package from scratch that provides those parts of AsyncPro's user program API you need would be great. Same could be enhanced with additional features whenever necessary.

The primarily essential part of AsyncPro's basic functionality is the thread based buffer handling. By this the AsyncPro "Events" can be handled by the main Thread of the application and thus in an "even driven Object-Pascal" way, freeing the user from dealing with threads himself.

This now needs a portable "backend" of inter-thread notification. This can be done with messages (such as AsyncPro works).

Using the LCL "Windows", "KDE" or "Gnome" Widget set ,this can be done by PostMessage (SendMessage) and "Procedure ... Message". Unfortunately the non GUI-based Widget sets ("NoGUI", "FPGUI", etc") don't seem to support this (yet) (no idea about Mac). I feel this is a big short-coming for "Using Lazarus on Embedded Linux". Maybe SyncOBJs can be used in a more portable way to achieve the same goal.

-Michael

--
_______________________________________________
Lazarus mailing list
[email protected]
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to