* Check if there are multiple waiters */
| 664 | * Check if there are multiple waiters |
| 665 | */ |
| 666 | static int |
| 667 | umtxq_count(struct umtx_key *key) |
| 668 | { |
| 669 | struct umtxq_queue *uh; |
| 670 | |
| 671 | UMTXQ_LOCKED_ASSERT(umtxq_getchain(key)); |
| 672 | uh = umtxq_queue_lookup(key, UMTX_SHARED_QUEUE); |
| 673 | if (uh != NULL) |
| 674 | return (uh->length); |
| 675 | return (0); |
| 676 | } |
| 677 | |
| 678 | /* |
| 679 | * Check if there are multiple PI waiters and returns first |
no test coverage detected