What does the lock function here specifically mean? ?
Why is sembuf.sem_op -1 instead of 1 when unlocking? ?
It is recommended that you do it yourself, check more, and don’t be a hand-in-hand party. sembuf.sem_op does not have to be -1 or 1, only positive and negative, indicating different operations.
It is recommended that you do it yourself, check more, and don’t be a hand-in-hand party.
sembuf.sem_op does not have to be -1 or 1, only positive and negative, indicating different operations.