Updated comments

mysys/queues.c:
  Comments for new functions (no code change)
mysys/thr_alarm.c:
  Updated comment
This commit is contained in:
unknown 2003-10-15 16:55:24 +03:00
commit 48446c0f73
2 changed files with 29 additions and 5 deletions

View file

@ -120,16 +120,20 @@ void init_thr_alarm(uint max_alarms)
DBUG_VOID_RETURN;
}
void resize_thr_alarm(uint max_alarms)
{
pthread_mutex_lock(&LOCK_alarm);
/* it's ok not to shrink the queue sometimes */
/*
It's ok not to shrink the queue as there may be more pending alarms than
than max_alarms
*/
if (alarm_queue.elements < max_alarms)
resize_queue(&alarm_queue,max_alarms+1);
pthread_mutex_unlock(&LOCK_alarm);
return;
}
/*
Request alarm after sec seconds.