Changeset 1186:56c36d1007b4 in freeDiameter for include/freeDiameter/libfdproto.h
- Timestamp:
- Jun 7, 2013, 7:48:34 PM (11 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
include/freeDiameter/libfdproto.h
r1171 r1186 3184 3184 fd_fifo_timedget_int((queue), (void *)(item), (abstime)) 3185 3185 3186 3187 /* 3188 * FUNCTION: fd_fifo_select 3189 * 3190 * PARAMETERS: 3191 * queue : The queue to test. 3192 * abstime : the absolute time until which we can block waiting for an item. If NULL, the function returns immediatly. 3193 * 3194 * DESCRIPTION: 3195 * This function is similar to select(), it waits for data to be available in the queue 3196 * until the abstime is expired. 3197 * Upon function entry, even if abstime is already expired the data availability is tested. 3198 * 3199 * RETURN VALUE: 3200 * 0 : timeout expired without available data. 3201 * <0 : An error occurred (e.g., -EINVAL...) 3202 * >0 : data is available. The next call to fd_fifo_get will not block. 3203 */ 3204 int fd_fifo_select ( struct fifo * queue, const struct timespec *abstime ); 3205 3206 3207 3186 3208 /* Dump a fifo list and optionally its inner elements -- beware of deadlocks! */ 3187 3209 typedef DECLARE_FD_DUMP_PROTOTYPE((*fd_fifo_dump_item_cb), void * item); /* This function should be 1 line if possible, or use indent level. Ends with '\n' */
Note: See TracChangeset
for help on using the changeset viewer.