| От | Tom Lane |
|---|---|
| Тема | Re: Question on win32 semaphore simulation |
| Дата | |
| Msg-id | 12906.1145369677@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: Question on win32 semaphore simulation ("Magnus Hagander" <mha@sollentuna.net>) |
| Список | pgsql-hackers |
"Magnus Hagander" <mha@sollentuna.net> writes:
> Looking at the code, it looks fairly complex to me. I don't really know
> how sysv semaphores are supposed to work, or how we use them, but
> perhaps the whole piece of code can be simplified?
I'm not sure why the win32 port chose to emulate the SysV semaphore
interface anyway. You could equally well have used the Posix interface
(src/backend/port/posix_sema.c). Or, given Microsoft's NIH tendencies,
you might have needed to write a third implementation of the pg_sema.h
interface ... but it'd likely still be no larger than win32/sema.c ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера