pgsql-server: win32 doesn't support a static initializer for mutexes,
В списке pgsql-committers по дате отправления:
| От | momjian@svr1.postgresql.org (Bruce Momjian) |
|---|---|
| Тема | pgsql-server: win32 doesn't support a static initializer for mutexes, |
| Дата | |
| Msg-id | 20040712141118.571EED1B1D0@svr1.postgresql.org обсуждение |
| Список | pgsql-committers |
Log Message:
-----------
win32 doesn't support a static initializer for mutexes, thus the first
user must initialize the lock. The problem are concurrent "first" users
- the pthread_mutex_t initialization must be synchronized.
The current implementation is broken, the attached patches fixes that:
mutex_initlock is a spinlock. If the pthread_mutex_t mutex is not
initialized, then the spinlock is acquired, if the pthread_mutex_t is
initialized if it's not yet initialized and then the spinlock is
dropped.
Manfred Spraul
Modified Files:
--------------
pgsql-server/src/interfaces/libpq:
fe-connect.c (r1.275 -> r1.276)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/libpq/fe-connect.c.diff?r1=1.275&r2=1.276)
fe-secure.c (r1.42 -> r1.43)
(http://developer.postgresql.org/cvsweb.cgi/pgsql-server/src/interfaces/libpq/fe-secure.c.diff?r1=1.42&r2=1.43)
В списке pgsql-committers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера