"devlock.c", line 60: Warning: priority hides devlock::priority.
return lock;
}
-int devlock::init(int priority)
+int devlock::init(int initial_priority)
{
int stat;
devlock *rwl = this;
rwl->r_active = rwl->w_active = 0;
rwl->r_wait = rwl->w_wait = 0;
- rwl->priority = priority;
+ rwl->priority = initial_priority;
if ((stat = pthread_mutex_init(&rwl->mutex, NULL)) != 0) {
return stat;
}
public:
devlock(int reason, bool can_take=false);
~devlock();
- int init(int priority);
+ int init(int initial_priority);
int destroy();
int take_lock(take_lock_t *hold, int reason);
int return_lock(take_lock_t *hold);