From 908f317b73c784b7101463d08d6415ef7fd5cb6c Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Sat, 29 Apr 2006 16:34:41 +0000 Subject: Add Win32 semaphore implementation, rather than mimicking SysV semaphores. Qingqing Zhou --- src/include/storage/pg_sema.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/include/storage') diff --git a/src/include/storage/pg_sema.h b/src/include/storage/pg_sema.h index bacbd7d3f0..65a482468d 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; -- cgit v1.2.1