Skip site navigation (1) Skip section navigation (2)

Re: SpinLockAcquire question

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Boszormenyi Zoltan <zb(at)cybertec(dot)at>
Cc: PostgreSQL-development <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: SpinLockAcquire question
Date: 2010-04-20 14:45:59
Message-ID: 27877.1271774759@sss.pgh.pa.us (view raw or flat)
Thread:
Lists: pgsql-hackers
Boszormenyi Zoltan <zb(at)cybertec(dot)at> writes:
> is there a danger in using SpinLockAcquire() in
> a signal handler?

Yes.  Actually, pretty much anything beyond setting a "volatile" flag
variable is too dangerous.

			regards, tom lane

In response to

pgsql-hackers by date

Next:From: Alvaro HerreraDate: 2010-04-20 14:49:44
Subject: Re: Invitation to connect on LinkedIn
Previous:From: Hiroshi InoueDate: 2010-04-20 14:28:23
Subject: Re: [GENERAL] trouble with to_char('L')

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group