17
17
*****************************************************************************/
19
/******************************************************
19
/**************************************************//**
20
@file include/srv0que.h
20
21
Server query execution
22
23
Created 6/5/1996 Heikki Tuuri
29
30
#include "que0types.h"
31
/**************************************************************************
32
Checks if there is work to do in the server task queue. If there is, the
33
thread starts processing a task. Before leaving, it again checks the task
34
queue and picks a new task if any exists. This is called by a SRV_WORKER
38
srv_que_task_queue_check(void);
39
/*==========================*/
40
/**************************************************************************
41
Performs round-robin on the server tasks. This is called by a SRV_WORKER
42
thread every second or so. */
47
/* out: the new (may be == thr) query thread
49
que_thr_t* thr); /* in: query thread */
50
/**************************************************************************
51
Enqueues a task to server task queue and releases a worker thread, if
52
there exists one suspended. */
57
que_thr_t* thr); /* in: query thread */
58
/**************************************************************************
59
Enqueues a task to server task queue and releases a worker thread, if
60
there exists one suspended. */
32
/**********************************************************************//**
33
Enqueues a task to server task queue and releases a worker thread, if there
34
is a suspended one. */
63
37
srv_que_task_enqueue_low(
64
38
/*=====================*/
65
que_thr_t* thr); /* in: query thread */
39
que_thr_t* thr); /*!< in: query thread */