static int NaClDescMutexTryLock(struct NaClDesc          *vself) {
  struct NaClDescMutex *self = (struct NaClDescMutex *) vself;

  NaClSyncStatus status = NaClIntrMutexTryLock(&self->mu);

  return -NaClXlateNaClSyncStatus(status);
}
Exemple #2
0
int NaClDescMutexTryLock(struct NaClDesc          *vself,
                         struct NaClDescEffector  *effp) {
  struct NaClDescMutex *self = (struct NaClDescMutex *) vself;

  NaClSyncStatus status = NaClIntrMutexTryLock(&self->mu);

  UNREFERENCED_PARAMETER(effp);

  return -NaClXlateNaClSyncStatus(status);
}