- Timestamp:
-
01/02/16 03:26:33 (8 years ago)
- Author:
-
Nick Withers
- Comment:
-
Be specific about the resources required
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v2
|
v3
|
|
29 | 29 | = CONFIGURE / confdefs.h = |
30 | 30 | |
31 | | Mongoose uses the POSIX API and its mutex and condition variable features and thus resources must be allocated for it in the application's configuration. For example, add the following before including ''confdefs.h'' (with ''CONFIGURE_INIT'' #defined): |
32 | | {{{ |
33 | | #define CONFIGURE_MAXIMUM_POSIX_THREADS 10 |
34 | | #define CONFIGURE_MAXIMUM_POSIX_MUTEXES 10 |
35 | | #define CONFIGURE_MAXIMUM_POSIX_CONDITION_VARIABLES 10 |
36 | | }}} |
| 31 | Mongoose uses the POSIX API and its mutex and condition variable features and thus resources must be allocated for it in the application's configuration. |
| 32 | |
| 33 | It uses: |
| 34 | * One POSIX "master" thread |
| 35 | * A number of POSIX worker threads, depending on the number requested when starting Mongoose |
| 36 | * Two libio file descriptors for each worker thread |
| 37 | * Three POSIX condition variables |
| 38 | * One POSIX mutex |
37 | 39 | |
38 | 40 | = Initializing Mongoose = |