| От | Tom Lane |
|---|---|
| Тема | Re: Win32 open items |
| Дата | |
| Msg-id | 12353.1099166332@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Win32 open items ("Magnus Hagander" <mha@sollentuna.net>) |
| Список | pgsql-patches |
"Magnus Hagander" <mha@sollentuna.net> writes:
>> We don't need the cancelConnLock if this is done properly (at least,
>> assuming that storing a pointer is atomic, which seems reasonable).
> Anyway, consider this scenario. Thread A is the mainloop thread, Thread
> B is the thread that handles Ctrl-C. What if Thread B starts its run and
> starts reading off the pointer. Before it's done, it's pre-empted, and
> Thread A starts executing. Thread A does a free() on the memory pointed
> to by the pointer. When control goes back to Thread B, it will definitly
> die.
Good point. Never mind that claim then ...
regards, tom lane
В списке pgsql-patches по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера