GTK2: Threading is not possible for off-screen composing
Original Reporter info from Mantis: AntonK
-
Reporter name: Anton Kavalenka
Original Reporter info from Mantis: AntonK
- Reporter name: Anton Kavalenka
Description:
The attached example supposed to work under Windows and MacOSX and definitely fails under Linux.
Every button click signal a thread to render some graphics into bitmap.
Bitmap is locked.
As soon rendering is finished - GUI is notified on update.
The problem IMO in threading interoperability between XLib and GTK.
The problem was mentioned in discussion http://lists.lazarus.freepascal.org/pipermail/lazarus/2013-January/078795.html
Steps to reproduce:
Checkbox enables self-update.
Button awakens thread.
Mantis conversion info:
- Mantis ID: 24120
- OS: Linux
- OS Build: 7.0
- Platform: x86_64
- Version: 1.1 (SVN)