| 2346 | |
| 2347 | |
| 2348 | static void append_request_next(server_req_t* request, server_req_t** que_inst) |
| 2349 | { |
| 2350 | /************************************** |
| 2351 | * |
| 2352 | * a p p e n d _ r e q u e s t _ n e x t |
| 2353 | * |
| 2354 | ************************************** |
| 2355 | * |
| 2356 | * Functional description |
| 2357 | * Traverse using req_next ptr and append |
| 2358 | * a request at the end of a que. |
| 2359 | * Return count of pending requests. |
| 2360 | * |
| 2361 | **************************************/ |
| 2362 | MutexLockGuard queGuard(request_que_mutex, FB_FUNCTION); |
| 2363 | |
| 2364 | while (*que_inst) |
| 2365 | que_inst = &(*que_inst)->req_next; |
| 2366 | |
| 2367 | *que_inst = request; |
| 2368 | ports_pending++; |
| 2369 | } |
| 2370 | |
| 2371 | |
| 2372 | static void addClumplets(ClumpletWriter* dpb_buffer, |
no outgoing calls
no test coverage detected