mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 17:14:30 +02:00
Updated comments
mysys/queues.c: Comments for new functions (no code change) mysys/thr_alarm.c: Updated comment
This commit is contained in:
parent
60fb31ddec
commit
48446c0f73
2 changed files with 29 additions and 5 deletions
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue