OSDN Git Service

add sdl-1.3
[android-x86/external-stagefright-plugins.git] / SDL-1.3 / android-project / jni / SDL / src / thread / windows / win_ce_semaphore.h
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: */