src/thread/win32/win_ce_semaphore.h
author Sam Lantinga
Tue, 26 Aug 2008 07:34:23 +0000
changeset 2727 76c2fc9696ea
parent 1895 c121d94672cb
permissions -rw-r--r--
Fixed crash when tablet isn't detected properly
     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: */