| 792 | } |
| 793 | |
| 794 | static uint32_t |
| 795 | umtx_unlock_val(uint32_t flags, bool rb) |
| 796 | { |
| 797 | |
| 798 | if (rb) |
| 799 | return (UMUTEX_RB_OWNERDEAD); |
| 800 | else if ((flags & UMUTEX_NONCONSISTENT) != 0) |
| 801 | return (UMUTEX_RB_NOTRECOV); |
| 802 | else |
| 803 | return (UMUTEX_UNOWNED); |
| 804 | |
| 805 | } |
| 806 | |
| 807 | /* |
| 808 | * Put thread into sleep state, before sleeping, check if |
no outgoing calls
no test coverage detected