2009/10/20 J.P. Delport <[email protected]>:
> Hi Simon,
>
> Simon Hammett wrote:
>>>
>>> I will try osgqtbrowser on Windows and
>>> see what happens.
>>>
>>> Anyone else have reports on osgqtbrowser on Windows?
>>>
>>> thanks
>>> jp
>>>
>> Windozes is same as Mac, only the owner thread can retrieve events for
>> windows.
>
> can you expand on what you mean by "owner". If a thread other than main
> creates the viewer and that same thread calls frame(), will that work on
> Windows?
>
> jp

Sort of.

When a thread first creates a window, windows also creates the message
queue for the thread.
Windows messages are per thread, so only the thread which owns the
window will see the
messages for the window in it's event loop, so you can't have another
thread process mouse events, etc.

The pure gl stuff does work though, so you can draw from another thread.

With windows you should really make sure only one thread actually
creates windows as if you
have multiple windows in different threads the only safe
synchronisation primitive is MsgWaitForMultipleObjects which is a huge
pain in the butt.

I've had a go at doing a properly separately threaded viewer window
before and even being extra careful I couldn't stop it dead locking.

>
> --
> This message is subject to the CSIR's copyright terms and conditions, e-mail
> legal notice, and implemented Open Document Format (ODF) standard. The full
> disclaimer details can be found at http://www.csir.co.za/disclaimer.html.
>
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is believed to be clean.  MailScanner thanks Transtec
> Computers for their support.
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>



-- 
http://www.ssTk.co.uk
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to