Commit 2fcd99e7 authored by marko's avatar marko

branches/zip: srv_que_task_queue_check(): Unused, remove.

parent 79f2491f
...@@ -30,17 +30,8 @@ Created 6/5/1996 Heikki Tuuri ...@@ -30,17 +30,8 @@ Created 6/5/1996 Heikki Tuuri
#include "que0types.h" #include "que0types.h"
/**********************************************************************//** /**********************************************************************//**
Checks if there is work to do in the server task queue. If there is, the Enqueues a task to server task queue and releases a worker thread, if there
thread starts processing a task. Before leaving, it again checks the task is a suspended one. */
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. */
UNIV_INTERN UNIV_INTERN
void void
srv_que_task_enqueue_low( srv_que_task_enqueue_low(
......
...@@ -31,37 +31,6 @@ Created 6/5/1996 Heikki Tuuri ...@@ -31,37 +31,6 @@ Created 6/5/1996 Heikki Tuuri
#include "usr0sess.h" #include "usr0sess.h"
#include "que0que.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 Enqueues a task to server task queue and releases a worker thread, if there
is a suspended one. */ is a suspended one. */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment