~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/include/srv0que.h

  • Committer: Monty Taylor
  • Date: 2009-08-12 06:25:19 UTC
  • mto: (1114.1.1 innodb-plugin-merge)
  • mto: This revision was merged to the branch mainline in revision 1183.
  • Revision ID: mordred@inaugust.com-20090812062519-cij02mrrunvnxblt
Tags: innodb-plugin-1.0.4
InnoDB Plugin 1.0.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
*****************************************************************************/
18
18
 
19
 
/******************************************************
 
19
/**************************************************//**
 
20
@file include/srv0que.h
20
21
Server query execution
21
22
 
22
23
Created 6/5/1996 Heikki Tuuri
28
29
#include "univ.i"
29
30
#include "que0types.h"
30
31
 
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
35
 
thread. */
36
 
UNIV_INTERN
37
 
void
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. */
43
 
UNIV_INTERN
44
 
que_thr_t*
45
 
srv_que_round_robin(
46
 
/*================*/
47
 
                                /* out: the new (may be == thr) query thread
48
 
                                to run */
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. */
53
 
UNIV_INTERN
54
 
void
55
 
srv_que_task_enqueue(
56
 
/*=================*/
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. */
61
35
UNIV_INTERN
62
36
void
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 */
66
40
 
67
41
#endif
68
42