Re: Can we simplify win32 threading code

Поиск
Список
Период
Сортировка
От Qingqing Zhou
Тема Re: Can we simplify win32 threading code
Дата
Msg-id d7jllt$si8$1@news.hub.org
обсуждение исходный текст
Ответ на Re: Can we simplify win32 threading code  ("Magnus Hagander" <mha@sollentuna.net>)
Список pgsql-hackers
I have simplified the code according to the discussion. Now there is no pipe
or signaling threads, process access shared memory directly to pass signals.
Seems everything works fine except pg_ctl. I now have two choices to fix it:

(1) Record Shared memory name (it is already there) and the offset of
signaling shared memory in postmaster.pid; So the pg_ctl program can access
the shared memory (since it has write down the signal number there) and
SetEvent target process;

(2) Postmaster will startup a thread monitoring messages, pg_ctl simulate
"kill" by sending postmaster a message <target_pid, signum>, then postmaster
will forward this "signum" to "target_pid";

What do you think?

Regards,
Qingqing




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Hans-Jürgen Schönig
Дата:
Сообщение: Re: NOLOGGING option, or ?
Следующее
От: Zahid Khan
Дата:
Сообщение: ODBC