nanogui: Multi threads with WIN32 API


Previous by date: 21 Nov 2001 17:06:08 -0000 Re: microwindows with virtual display, Jordan Crouse
Next by date: 21 Nov 2001 17:06:08 -0000 Re: Multi threads with WIN32 API, Duncan Palmer
Previous in thread:
Next in thread: 21 Nov 2001 17:06:08 -0000 Re: Multi threads with WIN32 API, Duncan Palmer

Subject: Multi threads with WIN32 API
From: Peter Dufault ####@####.####
Date: 21 Nov 2001 17:06:08 -0000
Message-Id: <20011121120805.A80790@hda.hda.com>

I have an application where I'll use the WIN32 GDI API.  It will be
multi-threaded, though.  What I plan on doing is to restrict all microwindows
to a single thread other than PostThreadMessage, to require that
PostThreadMessage always be sent to
thread 0 or the above mentioned thread,
and to put locking mutexes in the GdRoutines in engine/devlist.c.

Make sense?  See any other gotchas?  Is there a suggested mutex API?
Can I just use the pthread mutex semantics and provide a default
NULL implementation?

Peter

--
Peter Dufault ####@####.####   Realtime development, Machine control,
HD Associates, Inc.               Fail-Safe systems, Agency approval

Previous by date: 21 Nov 2001 17:06:08 -0000 Re: microwindows with virtual display, Jordan Crouse
Next by date: 21 Nov 2001 17:06:08 -0000 Re: Multi threads with WIN32 API, Duncan Palmer
Previous in thread:
Next in thread: 21 Nov 2001 17:06:08 -0000 Re: Multi threads with WIN32 API, Duncan Palmer


Powered by ezmlm-browse 0.20.