636 views
in System Integration by
We have one framebuffer, and the framebuffer will be overlap by other buffer by another task. So during the overlap of the framebuffer, EW can't update the framebuffer.  How to solve this problem? Using the offscreen buffer or something else?  Is there a sample souce about it?

1 Answer

0 votes
by
 
Best answer
I'm not sure whether I understand your question. Generally, EW created application is limited to run within one GUI task/thread only. In any case you should try to call EW functions from other threads. This will lead to fatal inpredicable errors.

If you have several tasks, you need a kind of interprocess communication. This can be a message queue or a system event. The second task uses this IPC service to send a message to the GUI task. The GUI task, in turn, receives the message and performs the associated operation in its own context. In the simplest case you can use a global C variable declared as volatile. The second task sets the variable and the GUI task evaluates it periodically.

Ask Embedded Wizard - Archive

Welcome to the Ask Embedded Wizard archive. This community forum served us well for many years, but we've evolved our support approach!

Your resources:

The Embedded Wizard Online Documentation provides comprehensive documentation, tutorials, examples and ready-to-use software packages.

For dedicated assistance, explore our Embedded Wizard Product Support.

You can still browse the valuable discussions from our community history here.

Embedded Wizard Website | Privacy Policy | Imprint

...