comparison src/thread/windows/win_ce_semaphore.h @ 5062:e8916fe9cfc8

Fixed bug #925 Changed "win32" to "windows"
author Sam Lantinga <slouken@libsdl.org>
date Thu, 20 Jan 2011 18:04:05 -0800
parents src/thread/win32/win_ce_semaphore.h@c121d94672cb
children
comparison
equal deleted inserted replaced
5061:9e9940eae455 5062:e8916fe9cfc8
1 /* win_ce_semaphore.h - header file to go with win_ce_semaphore.c */
2
3 typedef struct _SYNCH_HANDLE_STRUCTURE
4 {
5 HANDLE hEvent;
6 HANDLE hMutex;
7 HANDLE hSemph;
8 LONG MaxCount;
9 volatile LONG CurCount;
10 LPCTSTR lpName;
11 } SYNCH_HANDLE_STRUCTURE, *SYNCHHANDLE;
12
13 #define SYNCH_HANDLE_SIZE sizeof (SYNCH_HANDLE_STRUCTURE)
14
15 /* Error codes - all must have bit 29 set */
16 #define SYNCH_ERROR 0X20000000 /* EXERCISE - REFINE THE ERROR NUMBERS */
17
18 extern SYNCHHANDLE CreateSemaphoreCE(LPSECURITY_ATTRIBUTES, LONG, LONG,
19 LPCTSTR);
20
21 extern BOOL ReleaseSemaphoreCE(SYNCHHANDLE, LONG, LPLONG);
22 extern DWORD WaitForSemaphoreCE(SYNCHHANDLE, DWORD);
23
24 extern BOOL CloseSynchHandle(SYNCHHANDLE);
25 /* vi: set ts=4 sw=4 expandtab: */