SpinLockAcquire question

From: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
To: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: SpinLockAcquire question
Date: 2010-04-20 13:46:26
Message-ID: 4BCDB032.8090403@cybertec.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Fujii Masao 2010-04-20 13:47:08 Re: [HACKERS] Streaming replication document improvements
Previous Message Robert Haas 2010-04-20 13:42:51 Re: [HACKERS] Streaming replication document improvements