* Lock two thread queues using their address to maintain lock order. */
| 894 | * Lock two thread queues using their address to maintain lock order. |
| 895 | */ |
| 896 | static void |
| 897 | tdq_lock_pair(struct tdq *one, struct tdq *two) |
| 898 | { |
| 899 | if (one < two) { |
| 900 | TDQ_LOCK(one); |
| 901 | TDQ_LOCK_FLAGS(two, MTX_DUPOK); |
| 902 | } else { |
| 903 | TDQ_LOCK(two); |
| 904 | TDQ_LOCK_FLAGS(one, MTX_DUPOK); |
| 905 | } |
| 906 | } |
| 907 | |
| 908 | /* |
| 909 | * Unlock two thread queues. Order is not important here. |
no outgoing calls
no test coverage detected