async_select  2.0.2
async_select
async_select_configuration.h
Go to the documentation of this file.
1 /*
2  * C
3  *
4  * Copyright 2017-2020 MicroEJ Corp. All rights reserved.
5  * This library is provided in source code for use, modification and test, subject to license terms.
6  * Any modification of the source code will break MicroEJ Corp. warranties on the whole library.
7  */
8 
9 #ifndef ASYNC_SELECT_CONFIGURATION_H
10 #define ASYNC_SELECT_CONFIGURATION_H
11 
20 #include <stdint.h>
21 #include <sni.h>
22 
23 #ifdef __cplusplus
24  extern "C" {
25 #endif
26 
27 #error "This header must be customized with platform specific configuration. Remove this #error when done. This file is not modified when a new version of the CCO is installed."
28 
37 #define ASYNC_SELECT_CONFIGURATION_VERSION (2)
38 
42 #define MAX_NB_ASYNC_SELECT (16)
43 
47 #define ASYNC_SELECT_TASK_STACK_SIZE (2048)
48 
52 #define ASYNC_SELECT_TASK_NAME "AsyncSelect"
53 
57 #define ASYNC_SELECT_TASK_PRIORITY (12)
58 
62 #define ASYNC_SELECT_MUTEX_NAME "AsyncSelectMutex"
63 
71 #define ASYNC_SELECT_POLLING_MODE_TIMEOUT_MS (100)
72 
73 
75 #ifndef __linux__
76 #define ASYNC_SELECT_CLOSE_UNBLOCK_SELECT
77 #endif
78 
84 #if defined(__linux__) || defined(__QNXNTO__)
85 #define ASYNC_SELECT_USE_PIPE_FOR_NOTIFICATION
86 #endif
87 
88 #ifdef __cplusplus
89  }
90 #endif
91 
92 #endif // ASYNC_SELECT_CONFIGURATION_H