MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / unlockMutex

Function unlockMutex

src/OSspecific/POSIX/POSIX.C:1467–1478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1465
1466
1467void 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
1481void Foam::freeMutex(const label index)

Callers 2

writeAllFunction · 0.85
writeFunction · 0.85

Calls 1

exitFunction · 0.50

Tested by

no test coverage detected