static int NaClDescMutexTryLock(struct NaClDesc *vself) { struct NaClDescMutex *self = (struct NaClDescMutex *) vself; NaClSyncStatus status = NaClIntrMutexTryLock(&self->mu); return -NaClXlateNaClSyncStatus(status); }
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); }