I’m trying to change this sbuf_remove method to return a pointer to an int

后端 未结 0 1904
走了就别回头了
走了就别回头了 2020-12-10 13:13
    int sbuf_remove(sbuf_t *sp)
    {
         int item;
         P(&sp->items); /* Wait for available item */
         P(&sp->mutex); /* Lock the buff         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题