| 1465 | |
| 1466 | |
| 1467 | void Foam::unlockMutex(const label index) |
| 1468 | { |
| 1469 | if (POSIX::debug) |
| 1470 | { |
| 1471 | Pout<< "unlockMutex : index:" << index << endl; |
| 1472 | } |
| 1473 | if (pthread_mutex_unlock(&mutexes_[index]())) |
| 1474 | { |
| 1475 | FatalErrorInFunction << "Failed unlocking mutex " << index |
| 1476 | << exit(FatalError); |
| 1477 | } |
| 1478 | } |
| 1479 | |
| 1480 | |
| 1481 | void Foam::freeMutex(const label index) |