| 51 | } |
| 52 | |
| 53 | TS_INLINE EThread * |
| 54 | EventProcessor::assign_thread(EventType etype) |
| 55 | { |
| 56 | int next; |
| 57 | ThreadGroupDescriptor *tg = &thread_group[etype]; |
| 58 | |
| 59 | ink_assert(etype < MAX_EVENT_TYPES); |
| 60 | if (tg->_count > 1) { |
| 61 | next = ++tg->_next_round_robin % tg->_count; |
| 62 | } else { |
| 63 | next = 0; |
| 64 | } |
| 65 | return tg->_thread[next]; |
| 66 | } |
| 67 | |
| 68 | // If thread_holding is the correct type, return it. |
| 69 | // |
no outgoing calls
no test coverage detected