mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 06:44:16 +01:00
branches/zip: srv_que_round_robin(), srv_que_task_enqueue(): Unused, remove.
This commit is contained in:
parent
67743761f1
commit
79f2491f48
2 changed files with 0 additions and 63 deletions
|
@ -39,23 +39,6 @@ void
|
||||||
srv_que_task_queue_check(void);
|
srv_que_task_queue_check(void);
|
||||||
/*==========================*/
|
/*==========================*/
|
||||||
/**********************************************************************//**
|
/**********************************************************************//**
|
||||||
Performs round-robin on the server tasks. This is called by a SRV_WORKER
|
|
||||||
thread every second or so.
|
|
||||||
@return the new (may be == thr) query thread to run */
|
|
||||||
UNIV_INTERN
|
|
||||||
que_thr_t*
|
|
||||||
srv_que_round_robin(
|
|
||||||
/*================*/
|
|
||||||
que_thr_t* thr); /*!< in: query thread */
|
|
||||||
/**********************************************************************//**
|
|
||||||
Enqueues a task to server task queue and releases a worker thread, if
|
|
||||||
there exists one suspended. */
|
|
||||||
UNIV_INTERN
|
|
||||||
void
|
|
||||||
srv_que_task_enqueue(
|
|
||||||
/*=================*/
|
|
||||||
que_thr_t* thr); /*!< in: query thread */
|
|
||||||
/**********************************************************************//**
|
|
||||||
Enqueues a task to server task queue and releases a worker thread, if
|
Enqueues a task to server task queue and releases a worker thread, if
|
||||||
there exists one suspended. */
|
there exists one suspended. */
|
||||||
UNIV_INTERN
|
UNIV_INTERN
|
||||||
|
|
|
@ -62,32 +62,6 @@ srv_que_task_queue_check(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************//**
|
|
||||||
Performs round-robin on the server tasks. This is called by a SRV_WORKER
|
|
||||||
thread every second or so.
|
|
||||||
@return the new (may be == thr) query thread to run */
|
|
||||||
UNIV_INTERN
|
|
||||||
que_thr_t*
|
|
||||||
srv_que_round_robin(
|
|
||||||
/*================*/
|
|
||||||
que_thr_t* thr) /*!< in: query thread */
|
|
||||||
{
|
|
||||||
que_thr_t* new_thr;
|
|
||||||
|
|
||||||
ut_ad(thr);
|
|
||||||
ut_ad(thr->state == QUE_THR_RUNNING);
|
|
||||||
|
|
||||||
mutex_enter(&kernel_mutex);
|
|
||||||
|
|
||||||
UT_LIST_ADD_LAST(queue, srv_sys->tasks, thr);
|
|
||||||
|
|
||||||
new_thr = UT_LIST_GET_FIRST(srv_sys->tasks);
|
|
||||||
|
|
||||||
mutex_exit(&kernel_mutex);
|
|
||||||
|
|
||||||
return(new_thr);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**********************************************************************//**
|
/**********************************************************************//**
|
||||||
Enqueues a task to server task queue and releases a worker thread, if there
|
Enqueues a task to server task queue and releases a worker thread, if there
|
||||||
is a suspended one. */
|
is a suspended one. */
|
||||||
|
@ -104,23 +78,3 @@ srv_que_task_enqueue_low(
|
||||||
|
|
||||||
srv_release_threads(SRV_WORKER, 1);
|
srv_release_threads(SRV_WORKER, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**********************************************************************//**
|
|
||||||
Enqueues a task to server task queue and releases a worker thread, if there
|
|
||||||
is a suspended one. */
|
|
||||||
UNIV_INTERN
|
|
||||||
void
|
|
||||||
srv_que_task_enqueue(
|
|
||||||
/*=================*/
|
|
||||||
que_thr_t* thr) /*!< in: query thread */
|
|
||||||
{
|
|
||||||
ut_ad(thr);
|
|
||||||
|
|
||||||
ut_a(0); /* Under MySQL this is never called */
|
|
||||||
|
|
||||||
mutex_enter(&kernel_mutex);
|
|
||||||
|
|
||||||
srv_que_task_enqueue_low(thr);
|
|
||||||
|
|
||||||
mutex_exit(&kernel_mutex);
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue