Re: Thread checks in Glass

2013-07-22 Thread Werner Lehmann

Seems as if the ticket isn't public...

On 22.07.2013 11:06, Petr Pchelko wrote:

You can follow progress inhttps://javafx-jira.kenai.com/browse/RT-26891


Re: Thread checks in Glass

2013-07-22 Thread Petr Pchelko
 Seems as if the ticket isn't public...
Sorry for that. Fixed.

With best regards. Petr.

On Jul 22, 2013, at 1:22 PM, Werner Lehmann wrote:

 Seems as if the ticket isn't public...
 
 On 22.07.2013 11:06, Petr Pchelko wrote:
 You can follow progress inhttps://javafx-jira.kenai.com/browse/RT-26891



Re: Thread checks in Glass

2013-07-22 Thread steve . x . northover
The first part of the checking is being done at the Glass level. More 
checking is under consideration but making native calls from the wrong 
thread can cause crashes and these are the most important things to fix 
first.


Steve

On 22/07/2013 12:08 PM, Pedro Duque Vieira wrote:

You mean like checking every possible call to ensure it is made in the UI
thread? Or just some?

I think this is great!

Regards,

Hello all,

FX is a single threaded UI toolkit.  Well written FX applications should
not access FX objects from outside the UI thread.  There are exceptions to
this rule and these are well documented. Documentation is great, but
enforcing thread checks in code is better.  Glass (the underlying native
window toolkit portability layer for FX) is being changed to ensure it is
accessed from the UI thread.  This is goodness.  Many threading issues in
FX, Quantum and Prism have been found and fixed as a result of this change.
You can follow progress in https://javafx-jira.kenai.com/browse/RT-26891
Petr  Steve