Changes between Version 30 and Version 31 of AS6-TME-B7
- Timestamp:
- Apr 12, 2023, 7:35:15 PM (18 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AS6-TME-B7
v30 v31 423 423 spin_lock (&b->lock); // get the ownership 424 424 if (b->waiting != 0) { // if someone is waiting 425 spin_ lock (&b->lock);// release the ownership425 spin_unlock (&b->lock); // release the ownership 426 426 return EBUSY; // return an error 427 427 } 428 428 429 429 b->expected = count; // set the number of expected threads 430 spin_ lock (&b->lock);// release the ownership430 spin_unlock (&b->lock); // release the ownership 431 431 432 432 return SUCCESS; // it's fine