So far I'm stuck. I was going to use manual-reset events + PulseEvent
but then saw the warnings about PulseEvent + kernel APC causing the
event to be missed.
I looked a little bit at pthreads-w32 but realized I can't use them w/
MsgWait...() and anyway it looks like pthreads-w32 doesn't support
inter-process condvars.
Is there a freely-available method to do this, that is posted on the
'net somewhere? (or am I screwed?)
Also, is there a way for me to be sure I can test that it works
properly, by queueing a long-duration APC somehow after a thread calls
MsgWait...() but before the condvar has been signaled? I know next to
nothing about APCs.
You can indeed convert Alex Terekhovs algorithm in pthread-win32 to a
shared-memory version.
you mean the "8a" algorithm listed in comp.programming threads (http://
groups.google.com/group/comp.programming.threads/browse_thread/thread/
1692bdec8040ba40?hl=en&tvc=2) in README.CV / pthread_cond_wait.c?
(thanks... searching for Terekhov algorithm in google just seems to
lead to other references to Terekhov's algorithm, took me a while to
find it)
> On Apr 17, 11:29 am, "Chris Thomasson" <cris...@comcast.net> wrote:
>> > I looked a little bit at pthreads-w32 but realized I can't use them w/
>> > MsgWait...() and anyway it looks like pthreads-w32 doesn't support
>> > inter-process condvars.
>>
>> [...]
>>
>> You can indeed convert Alex Terekhovs algorithm in pthread-win32 to a
>> shared-memory version.
>
> you mean the "8a" algorithm listed in comp.programming threads (http://
> groups.google.com/group/comp.programming.threads/browse_thread/thread/
> 1692bdec8040ba40?hl=en&tvc=2) in README.CV / pthread_cond_wait.c?
Yup.
> (thanks... searching for Terekhov algorithm in google just seems to
> lead to other references to Terekhov's algorithm, took me a while to
> find it)
Sorry for not providing a link.