| 1451 | |
| 1452 | |
| 1453 | void Foam::lockMutex(const label index) |
| 1454 | { |
| 1455 | if (POSIX::debug) |
| 1456 | { |
| 1457 | Pout<< "lockMutex : index:" << index << endl; |
| 1458 | } |
| 1459 | if (pthread_mutex_lock(&mutexes_[index]())) |
| 1460 | { |
| 1461 | FatalErrorInFunction << "Failed locking mutex " << index |
| 1462 | << exit(FatalError); |
| 1463 | } |
| 1464 | } |
| 1465 | |
| 1466 | |
| 1467 | void Foam::unlockMutex(const label index) |