Is there any way to request unique lwlock inside a background workerin PG9.4? - Mailing list pgsql-hackers

From Hubert Zhang
Subject Is there any way to request unique lwlock inside a background workerin PG9.4?
Date
Msg-id CAB0yrekpjterdr-hyZW9k21_akruSOWoOo6v-zsMq4Mg+tt4Gw@mail.gmail.com
Whole thread Raw
Responses Re: Is there any way to request unique lwlock inside a backgroundworker in PG9.4?  (Amit Kapila <amit.kapila16@gmail.com>)
List pgsql-hackers
Hi all,

I want to init SHM in a background worker, which is supported in PG9.4. Also I need to use lwlock to protect the share memory inside the worker code.

RequestNamedLWLockTranche is the way to handle it, but it's not supported in PG 9.4, is there any way I could request an unique lock inside worker init code in PG 9.4? 

--
Thanks

Hubert Zhang

pgsql-hackers by date:

Previous
From: Amit Kapila
Date:
Subject: Re: Undo logs
Next
From: Amit Kapila
Date:
Subject: Re: Is there any way to request unique lwlock inside a backgroundworker in PG9.4?