Re: Condition variable live lock

Поиск
Список
Период
Сортировка
От Thomas Munro
Тема Re: Condition variable live lock
Дата
Msg-id CAEepm=3MAW-LVDPmF+6nAUewC3_8mD3gcUPi-VrdBWnCQh7Qrw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Condition variable live lock  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Condition variable live lock  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Mon, Jan 8, 2018 at 12:38 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> I wrote:
>> Actually ... perhaps a better design would be to have
>> ConditionVariable[PrepareTo]Sleep auto-cancel any prepared sleep for
>> a different condition variable, analogously to what we just did in
>> ConditionVariableBroadcast, on the same theory that whenever control
>> returns to the other CV wait loop it can re-establish the relevant
>> state easily enough.  I have to think that if the use of CVs grows
>> much, the existing restriction is going to become untenable anyway,
>> so why not just get rid of it?
>
> Concretely, as per attached.

+1 for the idea.  Haven't looked at the code yet but I'll review this
and the proclist patch shortly.

-- 
Thomas Munro
http://www.enterprisedb.com


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

Предыдущее
От: Thomas Munro
Дата:
Сообщение: Re: heads up: Fix for intel hardware bug will lead to performance regressions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Condition variable live lock