aboutsummaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2006-04-29 16:34:41 +0000
committerBruce Momjian <bruce@momjian.us>2006-04-29 16:34:41 +0000
commit908f317b73c784b7101463d08d6415ef7fd5cb6c (patch)
treea9893dc6523b874260197a20e07a0f981728cae2 /src/include
parent291724dfa8809c8103a413cd653c1063336d8790 (diff)
downloadpostgresql-908f317b73c784b7101463d08d6415ef7fd5cb6c.tar.gz
postgresql-908f317b73c784b7101463d08d6415ef7fd5cb6c.zip
Add Win32 semaphore implementation, rather than mimicking SysV
semaphores. Qingqing Zhou
Diffstat (limited to 'src/include')
-rw-r--r--src/include/storage/pg_sema.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/include/storage/pg_sema.h b/src/include/storage/pg_sema.h
index bacbd7d3f0c..65a482468d3 100644
--- a/src/include/storage/pg_sema.h
+++ b/src/include/storage/pg_sema.h
@@ -13,7 +13,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
- * $PostgreSQL: pgsql/src/include/storage/pg_sema.h,v 1.8 2006/03/05 15:58:59 momjian Exp $
+ * $PostgreSQL: pgsql/src/include/storage/pg_sema.h,v 1.9 2006/04/29 16:34:41 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -54,6 +54,11 @@ typedef struct PGSemaphoreData
} PGSemaphoreData;
#endif
+#ifdef USE_WIN32_SEMAPHORES
+
+typedef HANDLE PGSemaphoreData;
+#endif
+
typedef PGSemaphoreData *PGSemaphore;