Changes between Version 30 and Version 31 of AS6-TME-B7


Ignore:
Timestamp:
Apr 12, 2023, 7:35:15 PM (18 months ago)
Author:
franck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AS6-TME-B7

    v30 v31  
    423423    spin_lock (&b->lock);                                   // get the ownership
    424424    if (b->waiting != 0) {                                  // if someone is waiting
    425         spin_lock (&b->lock);                               // release the ownership
     425        spin_unlock (&b->lock);                             // release the ownership
    426426        return EBUSY;                                       // return an error
    427427    }
    428428
    429429    b->expected = count;                                    // set the number of expected threads
    430     spin_lock (&b->lock);                                   // release the ownership
     430    spin_unlock (&b->lock);                                 // release the ownership
    431431
    432432    return SUCCESS;                                         // it's fine