Commit 3b85fc3a authored by Bruce Momjian's avatar Bruce Momjian

Update pthread_self() on Win32 to return DWORD.

parent a78a5308
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
* *
* Copyright (c) 2004-2005, PostgreSQL Global Development Group * Copyright (c) 2004-2005, PostgreSQL Global Development Group
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.9 2005/08/28 18:49:01 momjian Exp $ * $PostgreSQL: pgsql/src/interfaces/libpq/pthread-win32.c,v 1.10 2005/08/28 21:42:28 momjian Exp $
* *
*------------------------------------------------------------------------- *-------------------------------------------------------------------------
*/ */
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
#include <windows.h> #include <windows.h>
#include "pthread-win32.h" #include "pthread-win32.h"
HANDLE DWORD
pthread_self() pthread_self()
{ {
return GetCurrentThreadId(); return GetCurrentThreadId();
......
...@@ -5,7 +5,7 @@ typedef ULONG pthread_key_t; ...@@ -5,7 +5,7 @@ typedef ULONG pthread_key_t;
typedef HANDLE pthread_mutex_t; typedef HANDLE pthread_mutex_t;
typedef int pthread_once_t; typedef int pthread_once_t;
HANDLE pthread_self(); DWORD pthread_self();
void pthread_setspecific(pthread_key_t, void*); void pthread_setspecific(pthread_key_t, void*);
void* pthread_getspecific(pthread_key_t); void* pthread_getspecific(pthread_key_t);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment