Thread: win32 setitimer implementation

win32 setitimer implementation

From
"Magnus Hagander"
Date:
Hello!

Here is a patch that implements setitimer() on win32. With this patch
applied, deadlock detection and statement_timeout now works.

The file timer.c goes into src/backend/port/win32/.

The patch also removes two lines of "printf debugging" accidentally left
in pqsignal.h, in the console control handler.


//Magnus
 <<win32_setitimer.patch>>  <<timer.c>>

Attachment

Re: win32 setitimer implementation

From
Bruce Momjian
Date:
Patch applied with newer version is timer.c.  Thanks.

---------------------------------------------------------------------------



Magnus Hagander wrote:
> Hello!
>
> Here is a patch that implements setitimer() on win32. With this patch
> applied, deadlock detection and statement_timeout now works.
>
> The file timer.c goes into src/backend/port/win32/.
>
> The patch also removes two lines of "printf debugging" accidentally left
> in pqsignal.h, in the console control handler.
>
>
> //Magnus
>  <<win32_setitimer.patch>>  <<timer.c>>

Content-Description: win32_setitimer.patch

[ Attachment, skipping... ]

Content-Description: timer.c

[ Attachment, skipping... ]

>
> ---------------------------(end of broadcast)---------------------------
> TIP 8: explain analyze is your friend

--
  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, Pennsylvania 19073