SpinLockAcquire question - Mailing list pgsql-hackers

From Boszormenyi Zoltan
Subject SpinLockAcquire question
Date
Msg-id 4BCDB032.8090403@cybertec.at
Whole thread Raw
Responses Re: SpinLockAcquire question  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hi,

is there a danger in using SpinLockAcquire() in
a signal handler? I mean if e.g. a spinlock is already
taken by the process and a signal comes that's handler
wants to execute SpinLockAcquire() again, does it
lock up or simply increases the lock counter?

Thanks in advance,
Zoltán Böszörményi

-- 
Bible has answers for everything. Proof:
"But let your communication be, Yea, yea; Nay, nay: for whatsoever is more
than these cometh of evil." (Matthew 5:37) - basics of digital technology.
"May your kingdom come" - superficial description of plate tectonics

----------------------------------
Zoltán Böszörményi
Cybertec Schönig & Schönig GmbH
http://www.postgresql.at/



pgsql-hackers by date:

Previous
From: Robert Haas
Date:
Subject: Re: [DOCS] Streaming replication document improvements
Next
From: Fujii Masao
Date:
Subject: Re: [DOCS] Streaming replication document improvements