Hi,
You could create a Cairo::ImageSurface and operate on that from the worker thread. Have additional variables to indicate status of drawing, area updated as member variables of this class. Then use Glib::Dispatcher to notify UI thread when its time to 'Blit' something on to screen. Needless to say it requires additional memory but its far better compared to trying to synchronize worker and UI threads so that they don't end up fighting with each other! On 26-07-2014 22:20, Szőke Szabolcs wrote:
Please consider the Environment before printing this e-mail. The information contained in this message (including any attachments) is confidential and may be privileged or otherwise protected from disclosure. If you are not the intended recipient, you must not copy this message or attachment or disclose the contents to any other person. If you have received this transmission in error, please notify the sender immediately by return e-mail and permanently delete this message and any attachments from your system. Any dissemination, use, review, distribution, printing or copying of this message in whole or in part is strictly prohibited. Please note that e-mails are susceptible to change. SKANRAY(including its group of companies) shall not be liable for any omission or error in the message, improper or incomplete transmission of the information contained in this communication or for any delay in its receipt or damage to your system. SKANRAY(or its group of companies) does not guarantee that the integrity of this communication has been maintained or that this communication is free of viruses, interceptions or interference. |