nanogui: Multi threads with WIN32 API
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