mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
branches/zip: srv_que_task_queue_check(): Unused, remove.
This commit is contained in:
parent
79f2491f48
commit
2fcd99e793
2 changed files with 2 additions and 42 deletions
|
@ -30,17 +30,8 @@ Created 6/5/1996 Heikki Tuuri
|
|||
#include "que0types.h"
|
||||
|
||||
/**********************************************************************//**
|
||||
Checks if there is work to do in the server task queue. If there is, the
|
||||
thread starts processing a task. Before leaving, it again checks the task
|
||||
queue and picks a new task if any exists. This is called by a SRV_WORKER
|
||||
thread. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
srv_que_task_queue_check(void);
|
||||
/*==========================*/
|
||||
/**********************************************************************//**
|
||||
Enqueues a task to server task queue and releases a worker thread, if
|
||||
there exists one suspended. */
|
||||
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_low(
|
||||
|
|
|
@ -31,37 +31,6 @@ Created 6/5/1996 Heikki Tuuri
|
|||
#include "usr0sess.h"
|
||||
#include "que0que.h"
|
||||
|
||||
/**********************************************************************//**
|
||||
Checks if there is work to do in the server task queue. If there is, the
|
||||
thread starts processing a task. Before leaving, it again checks the task
|
||||
queue and picks a new task if any exists. This is called by a SRV_WORKER
|
||||
thread. */
|
||||
UNIV_INTERN
|
||||
void
|
||||
srv_que_task_queue_check(void)
|
||||
/*==========================*/
|
||||
{
|
||||
que_thr_t* thr;
|
||||
|
||||
for (;;) {
|
||||
mutex_enter(&kernel_mutex);
|
||||
|
||||
thr = UT_LIST_GET_FIRST(srv_sys->tasks);
|
||||
|
||||
if (thr == NULL) {
|
||||
mutex_exit(&kernel_mutex);
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
UT_LIST_REMOVE(queue, srv_sys->tasks, thr);
|
||||
|
||||
mutex_exit(&kernel_mutex);
|
||||
|
||||
que_run_threads(thr);
|
||||
}
|
||||
}
|
||||
|
||||
/**********************************************************************//**
|
||||
Enqueues a task to server task queue and releases a worker thread, if there
|
||||
is a suspended one. */
|
||||
|
|
Loading…
Add table
Reference in a new issue