Re: Mixing threaded and non-threaded

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Mixing threaded and non-threaded
Дата
Msg-id 200401302252.i0UMqV124041@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Mixing threaded and non-threaded  (Scott Lamb <slamb@slamb.org>)
Список pgsql-hackers
Scott Lamb wrote:
> You could just do a pthread_sigmask() before and after the 
> pthread_setspecific() to guarantee that no SIGPIPE will arrive on that 
> thread in that time. I think it's pretty safe to assume that as long as 
> you're not doing a pthread_[gs]etspecific() on that same pthread_key_t, 
> it's safe.


I call pthread_setspecific() in the SIGPIPE handler.  How sdoes
pthread_sigmask() help me at that point?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: returning PGresult as xml
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Mixing threaded and non-threaded