Re: [PATCHES] Compiling libpq with VisualC
Bruce Momjian <[email protected]>
| Newsgroups | gmane.comp.db.postgresql.devel.win32,gmane.comp.db.postgresql.devel.general |
|---|---|
| Message-ID | <[email protected]> |
Andreas Pflug wrote: > Bruce Momjian wrote: > > > > >What is the recommended way to create mutex objects (CreateMutex) from > >Win32 libraries? There must be a clean way like there is in pthreads. > > > > It's having a central one-time called routine executing CreateMutex. > This can be DllMain, *if* used as DLL, but that's certainly no solution > for static linkage. This would require some PQinitThreadStuff() routine, > which may be called only once (and ultimately can't check for that > itself, if you don't trust a static var). Ewe. Well, I am not excited about adding a thread capability for Win32 that isn't 100% guaranteed to work. -- Bruce Momjian | http://candle.pha.pa.us [email protected] | (610) 359-1001 + If your life is a hard drive, | 13 Roberts Road + Christ can be your backup. | Newtown Square, Pennsylvania 19073 ---------------------------(end of broadcast)--------------------------- TIP 6: Have you searched our list archives? http://archives.postgresql.org