Ejemplo n.º 1
0
static int NaClDescMutexTryLock(struct NaClDesc          *vself) {
  struct NaClDescMutex *self = (struct NaClDescMutex *) vself;

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

  return -NaClXlateNaClSyncStatus(status);
}
Ejemplo n.º 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);
}