Обсуждение: Re: [HACKERS] [PATCHES] fork/exec patch

Поиск
Список
Период
Сортировка

Re: [HACKERS] [PATCHES] fork/exec patch

От
"Steve Tibbett"
Дата:
>My feelings wrt messages were based on a general uneasiness
>surrounding WaitForSingleObject calls via a polling thread,
>because this will exhibit pseudo-random (thus difficult to
>debug) behavior.

In the pipe scenario, the thread wouldn't be polling - it
would enter a WaitForSingleObject(hPipeServer, INFINITE) and
simply sit there until either the pipe handle was closed or
there was a pipe event.

--
Steve Tibbett
stibbett@zim.biz