search

Home  >  Q&A  >  body text

How to interpret this semaphore?

What does the lock function here specifically mean? ?

Why is sembuf.sem_op -1 instead of 1 when unlocking? ?

習慣沉默習慣沉默2746 days ago819

reply all(1)I'll reply

  • 大家讲道理

    大家讲道理2017-06-07 09:26:21

    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.

    reply
    0
  • Cancelreply