1 /** 2 * @file lv_windows.h 3 * 4 */ 5 6 #ifndef LV_WINDOWS_H 7 #define LV_WINDOWS_H 8 9 #ifdef __cplusplus 10 extern "C" { 11 #endif 12 13 /********************* 14 * INCLUDES 15 *********************/ 16 17 #if LV_USE_OS == LV_OS_WINDOWS 18 19 #include <Windows.h> 20 #include <stdbool.h> 21 22 /********************* 23 * DEFINES 24 *********************/ 25 26 /********************** 27 * TYPEDEFS 28 **********************/ 29 30 typedef HANDLE lv_thread_t; 31 32 typedef CRITICAL_SECTION lv_mutex_t; 33 34 typedef struct { 35 CRITICAL_SECTION cs; 36 CONDITION_VARIABLE cv; 37 bool v; 38 } lv_thread_sync_t; 39 40 /********************** 41 * GLOBAL PROTOTYPES 42 **********************/ 43 44 /********************** 45 * MACROS 46 **********************/ 47 48 #endif /*LV_USE_OS == LV_OS_WINDOWS*/ 49 50 #ifdef __cplusplus 51 } /*extern "C"*/ 52 #endif 53 54 #endif /*LV_WINDOWS_H*/ 55