Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
2fcd99e7
Commit
2fcd99e7
authored
Jun 30, 2009
by
marko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip: srv_que_task_queue_check(): Unused, remove.
parent
79f2491f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
42 deletions
+2
-42
include/srv0que.h
include/srv0que.h
+2
-11
srv/srv0que.c
srv/srv0que.c
+0
-31
No files found.
include/srv0que.h
View file @
2fcd99e7
...
@@ -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
(
...
...
srv/srv0que.c
View file @
2fcd99e7
...
@@ -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. */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment