Changeset 12 for pjproject/main/pjlib/include/pj/ioqueue.h
- Timestamp:
- Nov 6, 2005 1:32:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/main/pjlib/include/pj/ioqueue.h
r11 r12 83 83 * The items below describe rules that must be obeyed when using the I/O 84 84 * queue, with regard to concurrency: 85 * - in general, the I/O queue is thread safe (assuming the lock strategy 86 * is not changed to disable mutex protection). All operations, except 87 * unregistration which is described below, can be safely invoked 88 * simultaneously by multiple threads. 89 * - however, <b>care must be taken when unregistering a key</b> from the 85 * - simultaneous operations (by different threads) to different key is safe. 86 * - simultaneous operations to the same key is also safe, except 87 * <b>unregistration</b>, which is described below. 88 * - <b>care must be taken when unregistering a key</b> from the 90 89 * ioqueue. Application must take care that when one thread is issuing 91 90 * an unregistration, other thread is not simultaneously invoking an … … 207 206 208 207 /** 209 * Indicates that the I/O Queue should be created to handle reasonable 210 * number of threads. 211 */ 212 #define PJ_IOQUEUE_DEFAULT_THREADS 0 208 * This macro specifies the maximum number of events that can be 209 * processed by the ioqueue on a single poll cycle, on implementation 210 * that supports it. The value is only meaningfull when specified 211 * during PJLIB build. 212 */ 213 #ifndef PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL 214 # define PJ_IOQUEUE_MAX_EVENTS_IN_SINGLE_POLL (16) 215 #endif 216 213 217 214 218 /**
Note: See TracChangeset
for help on using the changeset viewer.