1
/******************************************************
6
Created 6/5/1996 Heikki Tuuri
7
*******************************************************/
14
#include "que0types.h"
16
/**************************************************************************
17
Checks if there is work to do in the server task queue. If there is, the
18
thread starts processing a task. Before leaving, it again checks the task
19
queue and picks a new task if any exists. This is called by a SRV_WORKER
23
srv_que_task_queue_check(void);
24
/*==========================*/
25
/**************************************************************************
26
Performs round-robin on the server tasks. This is called by a SRV_WORKER
27
thread every second or so. */
32
/* out: the new (may be == thr) query thread
34
que_thr_t* thr); /* in: query thread */
35
/**************************************************************************
36
Enqueues a task to server task queue and releases a worker thread, if
37
there exists one suspended. */
42
que_thr_t* thr); /* in: query thread */
43
/**************************************************************************
44
Enqueues a task to server task queue and releases a worker thread, if
45
there exists one suspended. */
48
srv_que_task_enqueue_low(
49
/*=====================*/
50
que_thr_t* thr); /* in: query thread */