Hi Neil
On 8.6.2006 16:57 Uhr, Neil wrote:
Andreas Wuest wrote:
So I wonder, if I just defer the editor setup code into an onload
listener, but continue doing other stuff after creating the <editor>
element, wouldn't I then run into the same problem again, because
basically the tread isn't yielded in this case as well.
In that case the only idea I have is to set a global flag or disable all
your fields so that the user can't trigger an edit until the editor has
loaded.
Yeah, unfortunately, JavaScript offers very little (i.e. none)
facilities to deal with multiple threads.
Since I basically open several editors at a time and then load a
document into them, I thought about using a semaphore to synchronise the
various threads. Of course, a semaphore implemented in JavaScript can
never be sound, but it might be possible to implement the semaphore in a
C++ component and then use the NSPR.
But anyway, thank you very much for all your answers and your time!! :)
I guess I have to see for myself which way to go from here.
--
Kind regards,
Andi
_______________________________________________
dev-tech-editor mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-editor