Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 37 → Rev 38

/shark/trunk/kernel/mutex.c
18,11 → 18,11
 
/**
------------
CVS : $Id: mutex.c,v 1.1.1.1 2002-03-29 14:12:52 pj Exp $
CVS : $Id: mutex.c,v 1.2 2003-01-07 17:07:49 pj Exp $
 
File: $File$
Revision: $Revision: 1.1.1.1 $
Last update: $Date: 2002-03-29 14:12:52 $
Revision: $Revision: 1.2 $
Last update: $Date: 2003-01-07 17:07:49 $
------------
 
This file contains the mutex and condition variables handling functions.
89,7 → 89,7
int mutex_init(mutex_t *mutex, const mutexattr_t *attr)
{
RLEVEL l;
int result = (EINVAL);
int result;
 
kern_cli();
mutex->mutexlevel = -1;
101,14 → 101,13
mutex_resource_des *m = (mutex_resource_des *)resource_table[l];
 
/* can the mutex level manage the mutexattr_t ? */
if (m->level_accept_mutexattr(l,attr) >=0) {
result = m->init(l, mutex, attr);
}
if ((result = m->init(l, mutex, attr)) >=0)
return result;
}
}
kern_sti();
 
return result;
return EINVAL;
}